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

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

Ponyville_Brothel.swf

This is the info page for
Flash #198270

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


ActionScript [AS1/AS2]
Combined Code
movieClip 75 BoundingBox { } movieClip 76 DataProvider { #initclip Object.registerClass('DataProvider', mx.controls.listclasses.DataProvider); #endinitclip frame 1 { stop(); } } movieClip 77 DataSelector { #initclip Object.registerClass('DataSelector', mx.controls.listclasses.DataSelector); #endinitclip frame 1 { stop(); } } movieClip 78 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 79 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 80 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 83 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 84 { #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 85 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 86 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 87 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 88 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 89 SelectableRow { #initclip Object.registerClass('SelectableRow', mx.controls.listclasses.SelectableRow); #endinitclip frame 1 { stop(); } } movieClip 91 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 93 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 94 SimpleButtonDown { } movieClip 96 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 98 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 99 SimpleButtonIn { } movieClip 100 SimpleButtonUp { } movieClip 101 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 102 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 103 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 104 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 105 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 101 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 106 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 109 ScrollTrack { } movieClip 116 ScrollDownArrowDisabled { } movieClip 118 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 120 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 121 ScrollDownArrowDown { } movieClip 122 ScrollDownArrowOver { } movieClip 123 ScrollDownArrowUp { } movieClip 129 ScrollThumbBottomDisabled { } movieClip 131 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 133 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 134 ScrollThumbBottomDown { } movieClip 135 ScrollThumbBottomOver { } movieClip 136 ScrollThumbBottomUp { } movieClip 138 ScrollThumbGripDisabled { } movieClip 140 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 141 ScrollThumbGripDown { } movieClip 142 ScrollThumbGripOver { } movieClip 143 ScrollThumbGripUp { } movieClip 145 ScrollThumbMiddleDisabled { } movieClip 146 ScrollThumbMiddleDown { } movieClip 147 { } movieClip 149 { } movieClip 150 ScrollThumbMiddleOver { } movieClip 151 ScrollThumbMiddleUp { } movieClip 152 ScrollThumbTopDisabled { } movieClip 153 ScrollThumbTopDown { } movieClip 154 ScrollThumbTopOver { } movieClip 155 ScrollThumbTopUp { } movieClip 156 ScrollTrackDisabled { } movieClip 157 ScrollUpArrowDisabled { } movieClip 158 ScrollUpArrowDown { } movieClip 159 ScrollUpArrowOver { } movieClip 160 ScrollUpArrowUp { } movieClip 161 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 162 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 163 ScrollBarAssets { } movieClip 164 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 105 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 101 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 165 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 105 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 101 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 166 View { #initclip Object.registerClass('View', mx.core.View); #endinitclip frame 1 { stop(); } } movieClip 167 ScrollView { #initclip Object.registerClass('ScrollView', mx.core.ScrollView); #endinitclip frame 1 { stop(); } instance of movieClip 164 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 165 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 168 ScrollSelectList { #initclip Object.registerClass('ScrollSelectList', mx.controls.listclasses.ScrollSelectList); #endinitclip frame 1 { stop(); } } movieClip 169 List { #initclip Object.registerClass('List', mx.controls.List); #endinitclip frame 1 { stop(); } } movieClip 170 TreeDataProvider { #initclip Object.registerClass('TreeDataProvider', mx.controls.treeclasses.TreeDataProvider); #endinitclip } movieClip 172 TreeDisclosureClosed { } movieClip 174 TreeDisclosureOpen { } movieClip 176 TreeFolderClosed { } movieClip 178 TreeFolderOpen { } movieClip 180 TreeNodeIcon { } movieClip 181 TreeAssets { } movieClip 182 TreeRow { #initclip Object.registerClass('TreeRow', mx.controls.treeclasses.TreeRow); #endinitclip frame 1 { stop(); } } movieClip 183 Tree { #initclip Object.registerClass('Tree', mx.controls.Tree); #endinitclip frame 1 { stop(); } instance of movieClip 169 List { onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; } } } movieClip 217 RadioFalseDisabled { } movieClip 219 RadioThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 222 { } movieClip 223 RadioThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 224 RadioFalseDown { } movieClip 225 RadioFalseOver { } movieClip 226 RadioFalseUp { } movieClip 227 RadioTrueDisabled { } movieClip 228 RadioTrueUp { } movieClip 229 RadioButtonAssets { #initclip mx.controls.RadioButton.prototype.adjustFocusRect = function () { var v4 = this._parent.focus_mc; var v2 = this.iconName; var v3 = this.getStyle('themeColor'); if (v3 == undefined) { v3 = 8453965; } var v5 = v2._width + 4; var v6 = v2._height + 4; v4.setSize(v5, v6, 8, 100, v3); var v8 = v2._x; var v7 = v2._y; v4.move(this.x - 2 + v8, this.y + v7 - 2); }; #endinitclip frame 1 { } } movieClip 230 RadioButton { #initclip Object.registerClass('RadioButton', mx.controls.RadioButton); #endinitclip frame 1 { stop(); } instance foo of movieClip 105 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 235 MenuBranchDisabled { } movieClip 237 MenuBranchEnabled { } movieClip 239 MenuCheckDisabled { } movieClip 241 MenuCheckEnabled { } movieClip 243 MenuRadioDisabled { } movieClip 245 MenuRadioEnabled { } movieClip 247 MenuSeparator { } movieClip 248 MenuAssets { } movieClip 249 MenuRow { #initclip Object.registerClass('MenuRow', mx.controls.menuclasses.MenuRow); #endinitclip frame 1 { stop(); } } movieClip 250 MenuDataProvider { #initclip Object.registerClass('MenuDataProvider', mx.controls.menuclasses.MenuDataProvider); #endinitclip frame 1 { stop(); } } movieClip 251 Menu { #initclip Object.registerClass('Menu', mx.controls.Menu); #endinitclip frame 1 { stop(); } } movieClip 257 TextArea { #initclip Object.registerClass('TextArea', mx.controls.TextArea); #endinitclip frame 1 { stop(); } } movieClip 260 CheckFalseDisabled { } movieClip 262 CheckThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 264 CheckFalseDown { } movieClip 265 CheckFalseOver { } movieClip 267 CheckFalseUp { } movieClip 269 CheckTrueDisabled { } movieClip 270 CheckTrueDown { } movieClip 271 CheckTrueOver { } movieClip 272 CheckTrueUp { } movieClip 273 CheckBoxAssets { #initclip mx.controls.CheckBox.prototype.adjustFocusRect = function () { var v4 = this._parent.focus_mc; var v2 = this.iconName; var v3 = this.getStyle('themeColor'); if (v3 == undefined) { v3 = 8453965; } var v8 = v2._width + 4; var v5 = v2._height + 4; v4.setSize(v8, v5, 0, 100, v3); var v7 = v2._x; var v6 = v2._y; v4.move(this.x - 2 + v7, this.y + v6 - 2); }; #endinitclip frame 1 { } } movieClip 274 CheckBox { #initclip Object.registerClass('CheckBox', mx.controls.CheckBox); #endinitclip frame 1 { stop(); } instance of movieClip 105 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 277 Label { #initclip Object.registerClass('Label', mx.controls.Label); #endinitclip frame 1 { stop(); } } frame 1 { var Game_Version = 'Version: 1.3.7'; Ladelabel.setStyle('fontSize', 20); bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded / bytes_total; Ladelabel.text = Math.round(getPercent * 100) + '%'; Preloader_Version.text = Game_Version; if (bytes_loaded == bytes_total) { Go_Button.enabled = true; stop(); } Go_Button.onRelease = function () { gotoAndPlay('Init'); }; } instance Ladelabel of movieClip 277 Label { onClipEvent (construct) { autoSize = 'center'; html = false; text = ''; visible = true; minHeight = 0; minWidth = 0; } } instance Go_Button of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Play!'; labelPlacement = 'right'; selected = false; toggle = false; enabled = false; visible = true; minHeight = 0; minWidth = 0; } } instance Preloader_Version of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Label'; visible = true; minHeight = 0; minWidth = 0; } } movieClip 63 __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 64 __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 65 __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 66 __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 67 __Packages.mx.controls.listclasses.DataSelector { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataSelector) { var v1 = function () { super(); }; mx.controls.listclasses.DataSelector = v1; var v2 = new Object(); mx.controls.listclasses.DataSelector.prototype = v2; v1.Initialize = function (obj) { var v3 = mx.controls.listclasses.DataSelector.mixinProps; var v4 = v3.length; obj = obj.prototype; var v1 = 0; while (v1 < v4) { obj[v3[v1]] = mx.controls.listclasses.DataSelector.mixins[v3[v1]]; ++v1; } mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'dataProvider', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'length', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'value', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndex', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedIndices', true); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItems', false); mx.controls.listclasses.DataSelector.mixins.createProp(obj, 'selectedItem', true); return true; }; v2.createProp = function (obj, propName, setter) { var p = (propName.charAt(0)).toUpperCase() + propName.substr(1); var v2 = null; var v4 = function (Void) { return this['get' + p](); }; if (setter) { v2 = function (val) { this['set' + p](val); }; } obj.addProperty(propName, v4, v2); }; v2.setDataProvider = function (dP) { if (this.__vPosition != 0) { this.setVPosition(0); } this.clearSelected(); this.__dataProvider.removeEventListener(this); this.__dataProvider = dP; dP.addEventListener('modelChanged', this); dP.addView(this); this.modelChanged({'eventName': 'updateAll'}); }; v2.getDataProvider = function (Void) { return this.__dataProvider; }; v2.addItemAt = function (index, label, data) { if (index < 0 || !this.enabled) { return undefined; } var v2 = this.__dataProvider; if (v2 == undefined) { this.__dataProvider = new Array(); v2 = this.__dataProvider; v2.addEventListener('modelChanged', this); index = 0; } if (typeof label == 'object' || typeof v2.getItemAt(0) == 'string') { v2.addItemAt(index, label); } else { v2.addItemAt(index, {'label': label, 'data': data}); } }; v2.addItem = function (label, data) { this.addItemAt(this.__dataProvider.length, label, data); }; v2.removeItemAt = function (index) { return this.__dataProvider.removeItemAt(index); }; v2.removeAll = function (Void) { this.__dataProvider.removeAll(); }; v2.replaceItemAt = function (index, newLabel, newData) { if (typeof newLabel == 'object') { this.__dataProvider.replaceItemAt(index, newLabel); } else { this.__dataProvider.replaceItemAt(index, {'label': newLabel, 'data': newData}); } }; v2.sortItemsBy = function (fieldName, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItemsBy(fieldName, order); }; v2.sortItems = function (compareFunc, order) { this.lastSelID = this.__dataProvider.getItemID(this.lastSelected); this.__dataProvider.sortItems(compareFunc, order); }; v2.getLength = function (Void) { return this.__dataProvider.length; }; v2.getItemAt = function (index) { return this.__dataProvider.getItemAt(index); }; v2.modelChanged = function (eventObj) { var v3 = eventObj.firstItem; var v6 = eventObj.lastItem; var v7 = eventObj.eventName; if (v7 == undefined) { v7 = eventObj.event; v3 = eventObj.firstRow; v6 = eventObj.lastRow; if (v7 == 'addRows') { eventObj.eventName = 'addItems'; v7 = 'addItems'; } else { if (v7 == 'deleteRows') { eventObj.eventName = 'removeItems'; v7 = 'removeItems'; } else { if (v7 == 'updateRows') { eventObj.eventName = 'updateItems'; v7 = 'updateItems'; } } } } if (v7 == 'addItems') { for (var v2 in this.selected) { var v5 = this.selected[v2]; if (v5 != undefined && v5 >= v3) { this.selected[v2] += v6 - v3 + 1; } } } else { if (v7 == 'removeItems') { if (this.__dataProvider.length == 0) { delete this.selected; } else { var v9 = eventObj.removedIDs; var v10 = v9.length; var v2 = 0; while (v2 < v10) { var v4 = v9[v2]; if (this.selected[v4] != undefined) { delete this.selected[v4]; } ++v2; } for (v2 in this.selected) { if (this.selected[v2] >= v3) { this.selected[v2] -= v6 - v3 + 1; } } } } else { if (v7 == 'sort') { if (typeof this.__dataProvider.getItemAt(0) != 'object') { delete this.selected; } else { var v10 = this.__dataProvider.length; var v2 = 0; while (v2 < v10) { if (this.isSelected(v2)) { var v4 = this.__dataProvider.getItemID(v2); if (v4 == this.lastSelID) { this.lastSelected = v2; } this.selected[v4] = v2; } ++v2; } } } else { if (v7 == 'filterModel') { this.setVPosition(0); } } } } this.invUpdateControl = true; this.invalidate(); }; v2.getValue = function (Void) { var v2 = this.getSelectedItem(); if (typeof v2 != 'object') { return v2; } return (v2.data == undefined) ? v2.label : v2.data; }; v2.getSelectedIndex = function (Void) { for (var v3 in this.selected) { var v2 = this.selected[v3]; if (v2 != undefined) { return v2; } } }; v2.setSelectedIndex = function (index) { if (index >= 0 && index < this.__dataProvider.length && this.enabled) { delete this.selected; this.selectItem(index, true); this.lastSelected = index; this.invUpdateControl = true; this.invalidate(); } else { if (index == undefined) { this.clearSelected(); } } }; v2.getSelectedIndices = function (Void) { var v2 = new Array(); for (var v3 in this.selected) { v2.push(this.selected[v3]); } v2.reverse(); return v2.length > 0 ? v2 : undefined; }; v2.setSelectedIndices = function (indexArray) { if (this.multipleSelection != true) { return undefined; } delete this.selected; var v3 = 0; while (v3 < indexArray.length) { var v2 = indexArray[v3]; if (v2 >= 0 && v2 < this.__dataProvider.length) { this.selectItem(v2, true); } ++v3; } this.invUpdateControl = true; this.updateControl(); }; v2.getSelectedItems = function (Void) { var v3 = this.getSelectedIndices(); var v4 = new Array(); var v2 = 0; while (v2 < v3.length) { v4.push(this.getItemAt(v3[v2])); ++v2; } return v4.length > 0 ? v4 : undefined; }; v2.getSelectedItem = function (Void) { return this.__dataProvider.getItemAt(this.getSelectedIndex()); }; v2.selectItem = function (index, selectedFlag) { if (this.selected == undefined) { this.selected = new Object(); } var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (selectedFlag && !this.isSelected(index)) { this.selected[v2] = index; } else { if (!selectedFlag) { delete this.selected[v2]; } } }; v2.isSelected = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return false; } return this.selected[v2] != undefined; }; v2.clearSelected = function (transition) { var v3 = 0; for (var v4 in this.selected) { var v2 = this.selected[v4]; if (v2 != undefined && this.__vPosition <= v2 && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'normal', transition && v3 % 3 == 0); } ++v3; } delete this.selected; }; v1.mixins = new mx.controls.listclasses.DataSelector(); v1.mixinProps = ['setDataProvider', 'getDataProvider', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'sortItemsBy', 'sortItems', 'getLength', 'getItemAt', 'modelChanged', 'calcPreferredWidthFromData', 'calcPreferredHeightFromData', 'getValue', 'getSelectedIndex', 'getSelectedItem', 'getSelectedIndices', 'getSelectedItems', 'selectItem', 'isSelected', 'clearSelected', 'setSelectedIndex', 'setSelectedIndices']; ASSetPropFlags(mx.controls.listclasses.DataSelector.prototype, null, 1); } #endinitclip } movieClip 68 __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 69 __Packages.mx.controls.listclasses.DataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.DataProvider) { var v1 = function (obj) { super(); }; mx.controls.listclasses.DataProvider = v1; var v2 = new Object(); mx.controls.listclasses.DataProvider.prototype = v2; v1.Initialize = function (obj) { var v4 = mx.controls.listclasses.DataProvider.mixinProps; var v6 = v4.length; obj = obj.prototype; var v3 = 0; while (v3 < v6) { obj[v4[v3]] = mx.controls.listclasses.DataProvider.mixins[v4[v3]]; _global.ASSetPropFlags(obj, v4[v3], 1); ++v3; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, 'addEventListener', 1); _global.ASSetPropFlags(obj, 'removeEventListener', 1); _global.ASSetPropFlags(obj, 'dispatchEvent', 1); _global.ASSetPropFlags(obj, 'dispatchQueue', 1); Object.prototype.LargestID = 0; Object.prototype.getID = function () { if (this.__ID__ == undefined) { this.__ID__ = Object.prototype.LargestID++; _global.ASSetPropFlags(this, '__ID__', 1); } return this.__ID__; }; _global.ASSetPropFlags(Object.prototype, 'LargestID', 1); _global.ASSetPropFlags(Object.prototype, 'getID', 1); return true; }; v2.addItemAt = function (index, value) { if (index < this.length) { this.splice(index, 0, value); } else { if (index > this.length) { trace('Cannot add an item past the end of the DataProvider'); return undefined; } } this[index] = value; this.updateViews('addItems', index, index); }; v2.addItem = function (value) { this.addItemAt(this.length, value); }; v2.addItemsAt = function (index, newItems) { index = Math.min(this.length, index); newItems.unshift(index, 0); this.splice.apply(this, newItems); newItems.splice(0, 2); this.updateViews('addItems', index, index + newItems.length - 1); }; v2.removeItemsAt = function (index, len) { var v3 = new Array(); var v2 = 0; while (v2 < len) { v3.push(this.getItemID(index + v2)); ++v2; } var v6 = this.splice(index, len); this.dispatchEvent({'type': 'modelChanged', 'eventName': 'removeItems', 'firstItem': index, 'lastItem': index + len - 1, 'removedItems': v6, 'removedIDs': v3}); }; v2.removeItemAt = function (index) { var v2 = this[index]; this.removeItemsAt(index, 1); return v2; }; v2.removeAll = function (Void) { this.splice(0); this.updateViews('removeItems', 0, this.length - 1); }; v2.replaceItemAt = function (index, itemObj) { if (index < 0 || index >= this.length) { return undefined; } var v3 = this.getItemID(index); this[index] = itemObj; this[index].__ID__ = v3; this.updateViews('updateItems', index, index); }; v2.getItemAt = function (index) { return this[index]; }; v2.getItemID = function (index) { var v2 = this[index]; if (typeof v2 != 'object' && v2 != undefined) { return index; } else { return v2.getID(); } }; v2.sortItemsBy = function (fieldName, order) { if (typeof order == 'string') { this.sortOn(fieldName); if (order.toUpperCase() == 'DESC') { this.reverse(); } } else { this.sortOn(fieldName, order); } this.updateViews('sort'); }; v2.sortItems = function (compareFunc, optionFlags) { this.sort(compareFunc, optionFlags); this.updateViews('sort'); }; v2.editField = function (index, fieldName, newData) { this[index][fieldName] = newData; this.dispatchEvent({'type': 'modelChanged', 'eventName': 'updateField', 'firstItem': index, 'lastItem': index, 'fieldName': fieldName}); }; v2.getEditingData = function (index, fieldName) { return this[index][fieldName]; }; v2.updateViews = function (event, first, last) { this.dispatchEvent({'type': 'modelChanged', 'eventName': event, 'firstItem': first, 'lastItem': last}); }; v1.mixinProps = ['addView', 'addItem', 'addItemAt', 'removeAll', 'removeItemAt', 'replaceItemAt', 'getItemAt', 'getItemID', 'sortItemsBy', 'sortItems', 'updateViews', 'addItemsAt', 'removeItemsAt', 'getEditingData', 'editField']; v1.evtDipatcher = mx.events.EventDispatcher; v1.mixins = new mx.controls.listclasses.DataProvider(); ASSetPropFlags(mx.controls.listclasses.DataProvider.prototype, null, 1); } #endinitclip } movieClip 70 __Packages.mx.controls.listclasses.ScrollSelectList { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.ScrollSelectList) { var v1 = function () { super(); }; mx.controls.listclasses.ScrollSelectList = v1; var v2 = new mx.core.ScrollView(); mx.controls.listclasses.ScrollSelectList.prototype = v2; v2.layoutContent = function (x, y, w, h) { delete this.invLayoutContent; var v4 = Math.ceil(h / this.__rowHeight); this.roundUp = h % this.__rowHeight != 0; var v12 = v4 - this.__rowCount; if (v12 < 0) { var v3 = v4; while (v3 < this.__rowCount) { this.rows[v3].removeMovieClip(); delete this.rows[v3]; ++v3; } this.topRowZ += v12; } else { if (v12 > 0) { if (this.rows == undefined) { this.rows = new Array(); } var v3 = this.__rowCount; while (v3 < v4) { this.rows[v3] = this.listContent.createObject(this.__rowRenderer, 'listRow' + this.topRowZ++, this.topRowZ, {'owner': this, 'styleName': this, 'rowIndex': v3}); var v2 = this.rows[v3]; v2._x = x; v2._y = Math.round(v3 * this.__rowHeight + y); v2.setSize(w, this.__rowHeight); v2.drawRow(this.__dataProvider.getItemAt(this.__vPosition + v3), this.getStateAt(this.__vPosition + v3)); v2.lastY = v2._y; ++v3; } } } if (w != this.tW) { var v11 = v12 > 0 ? this.__rowCount : v4; v3 = 0; while (v3 < v11) { this.rows[v3].setSize(w, this.__rowHeight); ++v3; } } if (this.layoutX != x || this.layoutY != y) { v3 = 0; while (v3 < v4) { this.rows[v3]._x = x; this.rows[v3]._y = Math.round(v3 * this.__rowHeight + y); ++v3; } } this.__rowCount = v4; this.layoutX = x; this.layoutY = y; this.tW = w; this.tH = h; }; v2.getRowHeight = function (Void) { return this.__rowHeight; }; v2.setRowHeight = function (v) { this.__rowHeight = v; this.invRowHeight = true; this.invalidate(); }; v2.__get__rowHeight = function () { return this.getRowHeight(); }; v2.__set__rowHeight = function (w) { this.setRowHeight(w); return this.__get__rowHeight(); }; v2.setRowCount = function (v) { this.__rowCount = v; }; v2.getRowCount = function (Void) { if (this.__rowCount != 0) { var v2 = this.__rowCount; return v2; } var v2 = Math.ceil(this.__height / this.__rowHeight); return v2; }; v2.__get__rowCount = function () { return this.getRowCount(); }; v2.__set__rowCount = function (w) { this.setRowCount(w); return this.__get__rowCount(); }; v2.setEnabled = function (v) { super.setEnabled(v); this.invUpdateControl = true; this.invalidate(); }; v2.setCellRenderer = function (cR) { this.__cellRenderer = cR; var v2 = 0; while (v2 < this.rows.length) { this.rows[v2].setCellRenderer(true); ++v2; } this.invUpdateControl = true; this.invalidate(); }; v2.__set__cellRenderer = function (cR) { this.setCellRenderer(cR); return this.__get__cellRenderer(); }; v2.__get__cellRenderer = function () { return this.__cellRenderer; }; v2.__set__labelField = function (field) { this.setLabelField(field); return this.__get__labelField(); }; v2.setLabelField = function (field) { this.__labelField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelField = function () { return this.__labelField; }; v2.__set__labelFunction = function (func) { this.setLabelFunction(func); return this.__get__labelFunction(); }; v2.setLabelFunction = function (func) { this.__labelFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__labelFunction = function () { return this.__labelFunction; }; v2.__set__iconField = function (field) { this.setIconField(field); return this.__get__iconField(); }; v2.setIconField = function (field) { this.__iconField = field; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconField = function () { return this.__iconField; }; v2.__set__iconFunction = function (func) { this.setIconFunction(func); return this.__get__iconFunction(); }; v2.setIconFunction = function (func) { this.__iconFunction = func; this.invUpdateControl = true; this.invalidate(); }; v2.__get__iconFunction = function () { return this.__iconFunction; }; v2.setVPosition = function (pos) { if (pos < 0) { return undefined; } if (pos > 0 && pos > this.getLength() - this.__rowCount + this.roundUp) { return undefined; } var v8 = pos - this.__vPosition; if (v8 == 0) { return undefined; } this.__vPosition = pos; var v10 = v8 > 0; v8 = Math.abs(v8); if (v8 >= this.__rowCount) { this.updateControl(); } else { var v4 = new Array(); var v9 = this.__rowCount - v8; var v12 = v8 * this.__rowHeight; var v11 = v9 * this.__rowHeight; var v6 = v10 ? 1 : -1; var v3 = 0; while (v3 < this.__rowCount) { if (v3 < v8 && v10 || v3 >= v9 && !v10) { this.rows[v3]._y += Math.round(v6 * v11); var v5 = v3 + v6 * v9; var v7 = this.__vPosition + v5; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; v4[v5].drawRow(this.__dataProvider.getItemAt(v7), this.getStateAt(v7), false); } else { this.rows[v3]._y -= Math.round(v6 * v12); var v5 = v3 - v6 * v8; v4[v5] = this.rows[v3]; v4[v5].rowIndex = v5; } ++v3; } this.rows = v4; v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].swapDepths(this.baseRowZ + v3); ++v3; } } this.lastPosition = pos; super.setVPosition(pos); }; v2.setPropertiesAt = function (index, obj) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } if (this.propertyTable == undefined) { this.propertyTable = new Object(); } this.propertyTable[v2] = obj; this.rows[index - this.__vPosition].drawRow(this.__dataProvider.getItemAt(index), this.getStateAt(index)); }; v2.getPropertiesAt = function (index) { var v2 = this.__dataProvider.getItemID(index); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getPropertiesOf = function (obj) { var v2 = obj.getID(); if (v2 == undefined) { return undefined; } return this.propertyTable[v2]; }; v2.getStyle = function (styleProp) { var v2 = super.getStyle(styleProp); var v3 = mx.styles.StyleManager.colorNames[v2]; if (v3 != undefined) { v2 = v3; } return v2; }; v2.updateControl = function (Void) { var v2 = 0; while (v2 < this.__rowCount) { this.rows[v2].drawRow(this.__dataProvider.getItemAt(v2 + this.__vPosition), this.getStateAt(v2 + this.__vPosition)); ++v2; } delete this.invUpdateControl; }; v2.getStateAt = function (index) { return this.isSelected(index) ? 'selected' : 'normal'; }; v2.selectRow = function (rowIndex, transition, allowChangeEvent) { if (!this.selectable) { return undefined; } var v3 = this.__vPosition + rowIndex; var v8 = this.__dataProvider.getItemAt(v3); var v5 = this.rows[rowIndex]; if (v8 == undefined) { return undefined; } if (transition == undefined) { transition = true; } if (allowChangeEvent == undefined) { allowChangeEvent = this.wasKeySelected; } this.changeFlag = true; if (!this.multipleSelection && !Key.isDown(17) || !Key.isDown(16) && !Key.isDown(17)) { this.clearSelected(transition); this.selectItem(v3, true); this.lastSelected = v3; v5.drawRow(v5.item, this.getStateAt(v3), transition); } else { if (Key.isDown(16) && this.multipleSelection) { if (this.lastSelected == undefined) { this.lastSelected = v3; } var v4 = this.lastSelected < v3 ? 1 : -1; this.clearSelected(false); var v2 = this.lastSelected; while (v2 != v3) { this.selectItem(v2, true); if (v2 >= this.__vPosition && v2 < this.__vPosition + this.__rowCount) { this.rows[v2 - this.__vPosition].drawRow(this.rows[v2 - this.__vPosition].item, 'selected', false); } v2 += v4; } this.selectItem(v3, true); v5.drawRow(v5.item, 'selected', transition); } else { if (Key.isDown(17)) { var v7 = this.isSelected(v3); if (!this.multipleSelection || this.wasKeySelected) { this.clearSelected(transition); } if (!(!this.multipleSelection && v7)) { this.selectItem(v3, !v7); var v9 = !v7 ? 'selected' : 'normal'; v5.drawRow(v5.item, v9, transition); } this.lastSelected = v3; } } } if (allowChangeEvent) { this.dispatchEvent({'type': 'change'}); } delete this.wasKeySelected; }; v2.dragScroll = function (Void) { clearInterval(this.dragScrolling); if (this._ymouse < 0) { this.setVPosition(this.__vPosition - 1); this.selectRow(0, false); var v2 = Math.min(-this._ymouse - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { if (this._ymouse > this.__height) { var v3 = this.__vPosition; this.setVPosition(this.__vPosition + 1); if (v3 != this.__vPosition) { this.selectRow(this.__rowCount - 1 - this.roundUp, false); } var v2 = Math.min(this._ymouse - this.__height - 30, 0); this.scrollInterval = 0.593 * v2 * v2 + 1 + this.minScrollInterval; this.dragScrolling = setInterval(this, 'dragScroll', this.scrollInterval); this.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': this.__vPosition}); } else { this.dragScrolling = setInterval(this, 'dragScroll', 15); } } updateAfterEvent(); }; v2.__onMouseUp = function (Void) { clearInterval(this.dragScrolling); delete this.dragScrolling; delete this.dragScrolling; delete this.isPressed; delete this.onMouseUp; if (!this.selectable) { return undefined; } if (this.changeFlag) { this.dispatchEvent({'type': 'change'}); } delete this.changeFlag; }; v2.moveSelBy = function (incr) { if (!this.selectable) { this.setVPosition(this.__vPosition + incr); return undefined; } var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = -1; } var v2 = v3 + incr; v2 = Math.max(0, v2); v2 = Math.min(this.getLength() - 1, v2); if (v2 == v3) { return undefined; } if (v3 < this.__vPosition || v3 >= this.__vPosition + this.__rowCount) { this.setVPosition(v3); } if (v2 >= this.__vPosition + this.__rowCount - this.roundUp || v2 < this.__vPosition) { this.setVPosition(this.__vPosition + incr); } this.wasKeySelected = true; this.selectRow(v2 - this.__vPosition, false); }; v2.keyDown = function (e) { if (this.selectable) { if (this.findInputText()) { return undefined; } } if (e.code == 40) { this.moveSelBy(1); } else { if (e.code == 38) { this.moveSelBy(-1); } else { if (e.code == 34) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(this.__rowCount - 1 - this.roundUp); } else { if (e.code == 33) { if (this.selectable) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = 0; } this.setVPosition(v3); } this.moveSelBy(1 - this.__rowCount + this.roundUp); } else { if (e.code == 36) { this.moveSelBy(-this.__dataProvider.length); } else { if (e.code == 35) { this.moveSelBy(this.__dataProvider.length); } } } } } } }; v2.findInputText = function (Void) { var v2 = Key.getAscii(); if (v2 >= 33 && v2 <= 126) { this.findString(String.fromCharCode(v2)); return true; } }; v2.findString = function (str) { if (this.__dataProvider.length == 0) { return undefined; } var v4 = this.getSelectedIndex(); if (v4 == undefined) { v4 = 0; } var v6 = 0; var v3 = v4 + 1; while (v3 != v4) { var v2 = this.__dataProvider.getItemAt(v3); if (v2 instanceof XMLNode) { v2 = v2.attributes[this.__labelField]; } else { if (typeof v2 != 'string') { v2 = String(v2[this.__labelField]); } } v2 = v2.substring(0, str.length); if (str == v2 || str.toUpperCase() == v2.toUpperCase()) { v6 = v3 - v4; break; } if (v3 >= this.getLength() - 1) { v3 = -1; } ++v3; } if (v6 != 0) { this.moveSelBy(v6); } }; v2.onRowPress = function (rowIndex) { if (!this.enabled) { return undefined; } this.isPressed = true; this.dragScrolling = setInterval(this, 'dragScroll', 15); this.onMouseUp = this.__onMouseUp; if (!this.selectable) { return undefined; } this.selectRow(rowIndex); }; v2.onRowRelease = function (rowIndex) {}; v2.onRowRollOver = function (rowIndex) { if (!this.enabled) { return undefined; } var v2 = this.rows[rowIndex].item; if (this.getStyle('useRollOver') && v2 != undefined) { this.rows[rowIndex].drawRow(v2, 'highlighted', false); } this.dispatchEvent({'type': 'itemRollOver', 'index': rowIndex + this.__vPosition}); }; v2.onRowRollOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.getStyle('useRollOver')) { this.rows[rowIndex].drawRow(this.rows[rowIndex].item, this.getStateAt(rowIndex + this.__vPosition), false); } this.dispatchEvent({'type': 'itemRollOut', 'index': rowIndex + this.__vPosition}); }; v2.onRowDragOver = function (rowIndex) { if (!this.enabled || this.isPressed != true || !this.selectable) { return undefined; } if (this.dropEnabled) { } else { if (this.dragScrolling) { this.selectRow(rowIndex, false); } else { this.onMouseUp = this.__onMouseUp; this.onRowPress(rowIndex); } } }; v2.onRowDragOut = function (rowIndex) { if (!this.enabled) { return undefined; } if (this.dragEnabled) { } else { this.onRowRollOut(rowIndex); } }; v2.init = function (Void) { super.init(); this.tabEnabled = true; this.tabChildren = false; if (this.__dataProvider == undefined) { this.__dataProvider = new Array(); this.__dataProvider.addEventListener('modelChanged', this); } this.topRowZ = 10; this.baseRowZ = 10; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); this.invLayoutContent = true; this.invalidate(); }; v2.draw = function (Void) { if (this.invRowHeight) { delete this.invRowHeight; this.__rowCount = 0; this.listContent.removeMovieClip(); this.listContent = this.createEmptyMovieClip('content_mc', this.CONTENTDEPTH); } if (this.invUpdateControl) { this.updateControl(); } this.border_mc.draw(); }; v2.invalidateStyle = function (propName) { if (this.isRowStyle[propName]) { this.invUpdateControl = true; this.invalidate(); } else { var v3 = 0; while (v3 < this.__rowCount) { this.rows[v3].invalidateStyle(propName); ++v3; } } super.invalidateStyle(propName); }; v1.mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList); v1.mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array); v2.CONTENTDEPTH = 100; v2.__hPosition = 0; v2.__rowRenderer = 'SelectableRow'; v2.__rowHeight = 22; v2.__rowCount = 0; v2.__labelField = 'label'; v2.minScrollInterval = 30; v2.dropEnabled = false; v2.dragEnabled = false; v2.className = 'ScrollSelectList'; v2.isRowStyle = {'styleName': true, 'backgroundColor': true, 'selectionColor': true, 'rollOverColor': true, 'selectionDisabledColor': true, 'backgroundDisabledColor': true, 'textColor': true, 'textSelectedColor': true, 'textRollOverColor': true, 'textDisabledColor': true, 'alternatingRowColors': true, 'defaultIcon': true}; v2.roundUp = 0; v2.selectable = true; v2.multipleSelection = false; v2.addProperty('cellRenderer', v2.__get__cellRenderer, v2.__set__cellRenderer); v2.addProperty('iconField', v2.__get__iconField, v2.__set__iconField); v2.addProperty('iconFunction', v2.__get__iconFunction, v2.__set__iconFunction); v2.addProperty('labelField', v2.__get__labelField, v2.__set__labelField); v2.addProperty('labelFunction', v2.__get__labelFunction, v2.__set__labelFunction); v2.addProperty('rowCount', v2.__get__rowCount, v2.__set__rowCount); v2.addProperty('rowHeight', v2.__get__rowHeight, v2.__set__rowHeight); ASSetPropFlags(mx.controls.listclasses.ScrollSelectList.prototype, null, 1); } #endinitclip } movieClip 71 __Packages.mx.controls.List { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.List) { var v1 = function () { super(); }; mx.controls.List = v1; var v2 = new mx.controls.listclasses.ScrollSelectList(); mx.controls.List.prototype = v2; v2.setEnabled = function (v) { super.setEnabled(v); this.border_mc.backgroundColorName = v ? 'backgroundColor' : 'backgroundDisabledColor'; this.border_mc.invalidate(); }; v2.__get__labels = function () { return this.__labels; }; v2.__set__labels = function (lbls) { this.__labels = lbls; this.setDataProvider(lbls); return this.__get__labels(); }; v2.setVPosition = function (pos) { pos = Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, pos); pos = Math.max(0, pos); super.setVPosition(pos); }; v2.setHPosition = function (pos) { pos = Math.max(Math.min(this.__maxHPosition, pos), 0); super.setHPosition(pos); this.hScroll(pos); }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; this.invScrollProps = true; this.invalidate(); }; v2.setHScrollPolicy = function (policy) { if (policy.toLowerCase() == 'auto' && !this.autoHScrollAble) { return undefined; } super.setHScrollPolicy(policy); if (policy == 'off') { this.setHPosition(0); this.setVPosition(Math.min(this.__dataProvider.length - this.__get__rowCount() + this.roundUp, this.__vPosition)); } }; v2.setRowCount = function (rC) { if (isNaN(rC)) { return undefined; } var v2 = this.getViewMetrics(); this.setSize(this.__width, this.__rowHeight * rC + v2.top + v2.bottom); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { this.totalWidth = tW; this.totalHeight = tH; this.displayWidth = dW; var v4 = (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') ? Math.max(tW, dW) : dW; super.layoutContent(x, y, v4, dH); }; v2.modelChanged = function (eventObj) { super.modelChanged(eventObj); var v3 = eventObj.eventName; if (v3 == 'addItems' || v3 == 'removeItems' || v3 == 'updateAll' || v3 == 'filterModel') { this.invScrollProps = true; this.invalidate('invScrollProps'); } }; v2.onScroll = function (eventObj) { var v3 = eventObj.target; if (v3 == this.vScroller) { this.setVPosition(v3.scrollPosition); } else { this.hScroll(v3.scrollPosition); } super.onScroll(eventObj); }; v2.hScroll = function (pos) { this.__hPosition = pos; this.listContent._x = -pos; }; v2.init = function (Void) { super.init(); if ((this.__get__labels()).length > 0) { var v6 = new Array(); var v3 = 0; while (v3 < (this.__get__labels()).length) { v6.addItem({'label': (this.__get__labels())[v3], 'data': this.data[v3]}); ++v3; } this.setDataProvider(v6); } this.__maxHPosition = 0; }; v2.createChildren = function (Void) { super.createChildren(); this.listContent.setMask(this.mask_mc); this.border_mc.move(0, 0); this.border_mc.setSize(this.__width, this.__height); }; v2.getRowCount = function (Void) { var v2 = this.getViewMetrics(); return (this.__rowCount == 0) ? Math.ceil((this.__height - v2.top - v2.bottom) / this.__rowHeight) : this.__rowCount; }; v2.size = function (Void) { super.size(); this.configureScrolling(); var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); }; v2.draw = function (Void) { if (this.invRowHeight) { this.invScrollProps = true; super.draw(); this.listContent.setMask(this.mask_mc); this.invLayoutContent = true; } if (this.invScrollProps) { this.configureScrolling(); delete this.invScrollProps; } if (this.invLayoutContent) { var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width + this.__maxHPosition, this.totalHeight, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); } super.draw(); }; v2.configureScrolling = function (Void) { var v2 = this.__dataProvider.length; if (this.__vPosition > Math.max(0, v2 - this.getRowCount() + this.roundUp)) { this.setVPosition(Math.max(0, Math.min(v2 - this.getRowCount() + this.roundUp, this.__vPosition))); } var v3 = this.getViewMetrics(); var v4 = (this.__hScrollPolicy != 'off') ? this.__maxHPosition + this.__width - v3.left - v3.right : this.__width - v3.left - v3.right; if (v2 == undefined) { v2 = 0; } this.setScrollProperties(v4, 1, v2, this.__rowHeight); if (this.oldVWidth != v4) { this.invLayoutContent = true; } this.oldVWidth = v4; }; v1.symbolOwner = mx.controls.List; v1.symbolName = 'List'; v2.className = 'List'; v1.version = '2.0.2.127'; v2.clipParameters = {'rowHeight': 1, 'enabled': 1, 'visible': 1, 'labels': 1}; v2.scrollDepth = 1; v2.__vScrollPolicy = 'on'; v2.autoHScrollAble = false; v2.addProperty('labels', v2.__get__labels, v2.__set__labels); ASSetPropFlags(mx.controls.List.prototype, null, 1); } #endinitclip } movieClip 72 __Packages.mx.controls.treeclasses.TreeDataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.treeclasses) { _global.mx.controls.treeclasses = new Object(); } if (!_global.mx.controls.treeclasses.TreeDataProvider) { var v1 = function () { super(); }; mx.controls.treeclasses.TreeDataProvider = v1; var v2 = new Object(); mx.controls.treeclasses.TreeDataProvider.prototype = v2; v1.Initialize = function (obj) { obj = obj.prototype; if (obj.addTreeNode != undefined) { return false; } var v4 = mx.controls.treeclasses.TreeDataProvider.mixinProps; var v5 = v4.length; var v2 = 0; while (v2 < v5) { obj[v4[v2]] = mx.controls.treeclasses.TreeDataProvider.mixins[v4[v2]]; _global.ASSetPropFlags(obj, v4[v2], 1); ++v2; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, 'addEventListener', 1); _global.ASSetPropFlags(obj, 'removeEventListener', 1); _global.ASSetPropFlags(obj, 'dispatchEvent', 1); _global.ASSetPropFlags(obj, 'dispatchQueue', 1); _global.ASSetPropFlags(obj, 'createEvent', 1); return true; }; v2.createProp = function (obj, propName, setter) { var p = (propName.charAt(0)).toUpperCase() + propName.substr(1); var v2 = null; var v4 = function (Void) { return this['get' + p](); }; if (setter) { v2 = function (val) { this['set' + p](val); }; } obj.addProperty(propName, v4, v2); }; v1.convertToNode = function (tag, arg, data) { if (typeof arg == 'string') { var v2 = mx.controls.treeclasses.TreeDataProvider.blankXML.createElement(tag); v2.attributes.label = arg; if (data != undefined) { v2.attributes.data = data; } return v2; } else { if (arg instanceof XML) { return arg.firstChild.cloneNode(true); } else { if (arg instanceof XMLNode) { return arg; } else { if (typeof arg == 'object') { var v2 = mx.controls.treeclasses.TreeDataProvider.blankXML.createElement(tag); for (var v3 in arg) { v2.attributes[v3] = arg[v3]; } if (data != undefined) { v2.attributes.data = data; } return v2; } } } } }; v2.addTreeNode = function (arg, data) { return this.addTreeNodeAt(this.childNodes.length, arg, data); }; v2.addTreeNodeAt = function (index, arg, data) { if (index > this.childNodes.length) { return undefined; } var v2; if (arg instanceof XMLNode) { v2 = arg.removeTreeNode(); } else { v2 = mx.controls.treeclasses.TreeDataProvider.convertToNode('node', arg, data); } if (index >= this.childNodes.length) { this.appendChild(v2); this.updateViews({'eventName': 'addNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; } this.insertBefore(v2, this.childNodes[index]); this.updateViews({'eventName': 'addNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; }; v2.getTreeNodeAt = function (index) { return this.childNodes[index]; }; v2.removeTreeNodeAt = function (index) { var v2 = this.childNodes[index]; v2.removeNode(); this.updateViews({'eventName': 'removeNode', 'node': v2, 'parentNode': this, 'index': index}); return v2; }; v2.removeTreeNode = function () { var v4 = this.parentNode; var v6; var v3 = 0; var v2 = this.parentNode.firstChild; while (v2 != undefined) { if (v2 == this) { v6 = v3; break; } ++v3; v2 = v2.nextSibling; } if (v6 != undefined) { var v8 = this.getRootNode(); this.removeNode(); v4.updateViews({'eventName': 'removeNode', 'node': this, 'parentNode': v4, 'index': v6}); } return this; }; v2.removeAll = function () { while (this.childNodes.length > 0) { this.removeTreeNodeAt(this.childNodes.length - 1); } var v3 = this.getRootNode(); this.updateViews({'eventName': 'updateTree'}); }; v2.getRootNode = function () { var v2 = this; for (;;) { if (!(v2.parentNode != undefined && v2.isTreeRoot == undefined)) break; v2 = v2.parentNode; } return v2; }; v2.updateViews = function (eventObj) { var v2 = this; eventObj.target = this; eventObj.type = 'modelChanged'; while (v2 != undefined) { if (v2.isTreeRoot || v2.parentNode == undefined) { v2.dispatchEvent(eventObj); } v2 = v2.parentNode; } }; v1.mixinProps = ['addTreeNode', 'addTreeNodeAt', 'getTreeNodeAt', 'removeTreeNodeAt', 'getRootNode', 'getDepth', 'removeAll', 'removeTreeNode', 'updateViews']; v1.evtDipatcher = mx.events.EventDispatcher; v1.mixins = new mx.controls.treeclasses.TreeDataProvider(); v1.blankXML = new XML(); v1.largestID = 0; ASSetPropFlags(mx.controls.treeclasses.TreeDataProvider.prototype, null, 1); } #endinitclip } movieClip 73 __Packages.mx.controls.Tree { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Tree) { var v1 = function () { super(); }; mx.controls.Tree = v1; var v2 = new mx.controls.List(); mx.controls.Tree.prototype = v2; v2.setIcon = function (node, iconID, iconID2) { if (this.nodeIcons == undefined) { this.nodeIcons = new Object(); } if (iconID2 == undefined) { iconID2 = iconID; } this.nodeIcons[node.getID()] = {'iconID': iconID, 'iconID2': iconID2}; var v3 = this.nodeIcons[node.getID()]; this.invUpdateControl = true; this.invalidate(); }; v2.getIsBranch = function (node) { return node.hasChildNodes() || this.branchNodes[node.getID()] != undefined; }; v2.setIsBranch = function (node, branch) { if (this.branchNodes == undefined) { this.branchNodes = new Object(); } if (!branch) { delete this.branchNodes[node.getID()]; } else { this.branchNodes[node.getID()] = true; } if (this.isNodeVisible(node)) { this.invUpdateControl = true; this.invalidate(); } }; v2.getNodeDepth = function (node) { var v3 = 0; var v2 = node; for (;;) { if (!(v2.parentNode != undefined && v2 != this.treeDataProvider)) break; ++v3; v2 = v2.parentNode; } return v3; }; v2.getIsOpen = function (node) { return this.openNodes[node.getID()] == true; }; v2.setIsOpen = function (node, open, animate, fireEvent) { if (!this.getIsBranch(node) || this.getIsOpen(node) == open || this.isOpening) { return undefined; } if (open) { this.openNodes[node.getID()] = open; } if (this.isNodeVisible(node)) { this.nodeList = this.getDisplayList(node, !open); this.rowIndex = this.getDisplayIndex(node) + 1 - this.__vPosition; var v6 = Math.min(this.nodeList.length, this.__rowCount - this.rowIndex); var v13 = this.getStyle('openDuration'); if (animate && this.rowIndex < this.__rowCount && v6 > 0 && v6 < 20 && v13 != 0) { this.tween.endTween(); this.opening = open; this.isOpening = true; var v7 = v6 * this.__rowHeight; var v15 = this.rowIndex; while (v15 < this.__rowCount) { this.rows[v15].__lastY = this.rows[v15]._y; ++v15; } this.maskList = new Array(); this.rowList = new Array(); var v4 = this.__viewMetrics; var v12 = (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == 'auto') ? this.__width + this.__maxHPosition : this.__width - v4.left - v4.right; v15 = 0; while (v15 < v6) { this.maskList[v15] = this.attachMovie('BoundingBox', 'openMask' + v15, 2001 + v15); var v3 = this.maskList[v15]; v3._width = this.__width - v4.left - v4.right; v3._x = v4.left; v3._height = v7; v3._y = this.rows[this.rowIndex]._y; this.rowList[v15] = this.listContent.createObject(this.__rowRenderer, 'treeRow' + this.topRowZ++, this.topRowZ, {'owner': this, 'styleName': this}); var v2 = this.rowList[v15]; v2._x = v4.left; v2.setSize(v12, this.__rowHeight); if (open) { v2.drawRow(this.nodeList[v15], 'normal'); v2._y = this.rows[this.rowIndex]._y - v7 + this.__rowHeight * v15; v2.setMask(v3); } else { var v5 = Math.max(this.__vPosition + this.__rowCount + v15 + this.nodeList.length - v6, this.rowIndex + this.nodeList.length); v2.drawRow(this.__dataProvider.getItemAt(v5), this.getStateAt(v5)); v2._y = this.rows[this.__rowCount - 1]._y + (v15 + 1) * this.__rowHeight; this.rows[this.rowIndex + v15].setMask(v3); } v2.__lastY = v2._y; ++v15; } v13 *= Math.max(v6 / 5, 1); if (fireEvent) { this.eventAfterTween = node; } this.tween = new mx.effects.Tween(this, 0, open ? v7 : -1 * v7, v13, 5); var v16 = this.getStyle('openEasing'); if (v16 != undefined) { this.tween.easingEquation = v16; } } else { this.isOpening = false; if (open) { this.addItemsAt(this.getDisplayIndex(node) + 1, this.nodeList); } else { this.__dataProvider.removeItemsAt(this.getDisplayIndex(node) + 1, this.nodeList.length); } this.invScrollProps = true; if (fireEvent) { this.eventPending = node; } this.invalidate(); } } if (!open) { this.openNodes[node.getID()] = open; } var v15 = this.getDisplayIndex(node); var v14 = this.rows[v15 - this.__vPosition]; v14.drawRow(v14.item, this.getStateAt(v15)); }; v2.onTweenUpdate = function (val) { var v2 = this.rowIndex; while (v2 < this.__rowCount) { this.rows[v2]._y = this.rows[v2].__lastY + val; ++v2; } v2 = 0; while (v2 < this.rowList.length) { this.rowList[v2]._y = this.rowList[v2].__lastY + val; ++v2; } }; v2.onTweenEnd = function (val) { var v2 = this.rowIndex; while (v2 < this.__rowCount) { this.rows[v2]._y = this.rows[v2].__lastY + val; delete this.rows[v2].__lastY; if (v2 >= this.__rowCount - this.rowList.length && this.opening) { this.rows[v2].removeMovieClip(); } ++v2; } v2 = 0; while (v2 < this.rowList.length) { this.rowList[v2]._y = this.rowList[v2].__lastY + val; if (this.opening) { this.rowList[v2].setMask(undefined); } else { this.rows[this.rowIndex + v2].removeMovieClip(); } this.maskList[v2].removeMovieClip(); ++v2; } this.isOpening = false; this.vScroller.__set__scrollPosition(this.__vPosition); if (this.opening) { var v4 = this.rowIndex + this.rowList.length; v2 = this.__rowCount - 1; while (v2 >= v4) { this.rows[v2] = this.rows[v2 - this.rowList.length]; this.rows[v2].rowIndex = v2; --v2; } v2 = this.rowIndex; while (v2 < v4) { this.rows[v2] = this.rowList[v2 - this.rowIndex]; this.rows[v2].rowIndex = v2; ++v2; } this.addItemsAt(this.rowIndex + this.__vPosition, this.nodeList); } else { var v3 = this.__rowCount - this.rowList.length; v2 = this.rowIndex; while (v2 < v3) { this.rows[v2] = this.rows[v2 + this.rowList.length]; this.rows[v2].rowIndex = v2; ++v2; } v2 = v3; while (v2 < this.__rowCount) { this.rows[v2] = this.rowList[v2 - v3]; this.rows[v2].rowIndex = v2; ++v2; } this.__dataProvider.removeItemsAt(this.rowIndex + this.__vPosition, this.nodeList.length); } if (this.eventAfterTween != undefined) { this.eventPending = this.eventAfterTween; this.invalidate(); delete this.eventAfterTween; } delete this.tween; delete this.invUpdateControl; }; v2.size = function (Void) { this.tween.endTween(); super.size(); }; v2.setVPosition = function (pos) { if (this.isOpening) { return undefined; } super.setVPosition(pos); }; v2.onScroll = function (evt) { if (this.isOpening) { return undefined; } super.onScroll(evt); }; v2.addItemsAt = function (index, arr) { var v4 = this.__dataProvider.slice(0, index); var v3 = this.__dataProvider.slice(index); this.__dataProvider = v4.concat(arr, v3); this.__dataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'addItems', 'firstItem': index, 'lastItem': index + arr.length - 1}); }; v2.setDataProvider = function (dP) { if (this.treeDataProvider != undefined) { this.treeDataProvider.removeEventListener(this); } if (typeof dP == 'string') { dP = new XML(dP); } this.treeDataProvider = dP; this.treeDataProvider.isTreeRoot = true; this.setIsBranch(this.treeDataProvider, true); this.setIsOpen(this.treeDataProvider, true); this.setDisplayIndex(this.treeDataProvider, -1); this.treeDataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'updateTree'}); }; v2.getDataProvider = function () { return this.treeDataProvider; }; v2.refresh = function () { this.updateControl(); }; v2.addTreeNode = function (label, data) { if (this.treeDataProvider == undefined) { this.setDataProvider(new XML()); } return this.treeDataProvider.addTreeNode(label, data); }; v2.addTreeNodeAt = function (index, label, data) { if (this.treeDataProvider == undefined) { this.setDataProvider(new XML()); } return this.treeDataProvider.addTreeNodeAt(index, label, data); }; v2.getTreeNodeAt = function (index) { return this.treeDataProvider.getTreeNodeAt(index); }; v2.removeTreeNodeAt = function (index) { return this.treeDataProvider.removeTreeNodeAt(index); }; v2.removeAll = function () { return this.treeDataProvider.removeAll(); }; v2.getNodeDisplayedAt = function (index) { return this.__dataProvider.getItemAt(index); }; v2.modelChanged = function (eventObj) { var v6 = eventObj.eventName; if (v6 == 'updateTree') { this.__dataProvider = this.getDisplayList(this.treeDataProvider); this.__dataProvider.addEventListener('modelChanged', this); super.modelChanged({'eventName': 'updateAll'}); } else { if (v6 == 'addNode') { var v8 = eventObj.node; if (this.isNodeVisible(v8)) { if (v8.nextSibling != undefined) { this.setDisplayIndex(v8, this.getDisplayIndex(v8.nextSibling)); } else { if (v8.previousSibling != undefined) { var v7 = this.getDisplayList(v8.previousSibling); if (v7.length > 0) { this.setDisplayIndex(v8, this.getDisplayIndex(v7.pop()) + 1); } else { this.setDisplayIndex(v8, this.getDisplayIndex(v8.previousSibling) + 1); } } else { this.setDisplayIndex(v8, this.getDisplayIndex(v8.parentNode) + 1); } } var v10 = this.getDisplayList(v8); v10.unshift(v8); this.addItemsAt(this.getDisplayIndex(v8), v10); } else { this.invUpdateControl = true; this.invalidate(); } } else { if (v6 == 'removeNode') { var v8 = eventObj.node; var v9 = this.getDisplayIndex(v8); if (v9 != undefined) { var v11 = this.getDisplayList(v8); this.__dataProvider.removeItemsAt(v9, v11.length + 1); } } else { if (v6 == 'addItems') { super.modelChanged(eventObj); var v5 = this.__dataProvider; var v3 = eventObj.firstItem; while (v3 < v5.length) { this.setDisplayIndex(v5[v3], v3); ++v3; } } else { if (v6 == 'removeItems') { var v5 = this.__dataProvider; var v3 = eventObj.firstItem; while (v3 < v5.length) { this.setDisplayIndex(v5[v3], v3); ++v3; } super.modelChanged(eventObj); } else { super.modelChanged(eventObj); } } } } } }; v2.isNodeVisible = function (node) { return this.getDisplayIndex(node) != undefined || this.getDisplayIndex(node.parentNode) != undefined && this.getIsOpen(node.parentNode); }; v2.getFirstVisibleNode = function () { return this.__dataProvider.getItemAt(this.__vPosition); }; v2.setFirstVisibleNode = function (node) { var v2 = this.getDisplayIndex(node); if (v2 == undefined) { return undefined; } this.setVPosition(v2); }; v2.__set__firstVisibleNode = function (node) { this.setFirstVisibleNode(node); return this.__get__firstVisibleNode(); }; v2.__get__firstVisibleNode = function () { return this.getFirstVisibleNode(); }; v2.__set__selectedNode = function (node) { var v2 = this.getDisplayIndex(node); if (v2 >= 0) { this.setSelectedIndex(v2); } return this.__get__selectedNode(); }; v2.__get__selectedNode = function () { return this.getSelectedItem(); }; v2.__set__selectedNodes = function (nodeArray) { var v5 = new Array(); var v3; var v2 = 0; while (v2 < nodeArray.length) { v3 = this.getDisplayIndex(nodeArray[v2]); if (v3 != undefined) { v5.push(v3); } ++v2; } this.setSelectedIndices(v5); return this.__get__selectedNodes(); }; v2.__get__selectedNodes = function () { return this.getSelectedItems(); }; v2.getDisplayList = function (node, removed) { var v5 = new Array(); if (!this.isNodeVisible(node) || !this.getIsOpen(node)) { return v5; } var v6 = this.getDisplayIndex(node); var v3 = new Array(); var v2 = node.firstChild; var v4 = v2 == undefined; while (!v4) { if (removed) { this.setDisplayIndex(v2, undefined); } else { this.setDisplayIndex(v2, ++v6); } v5.push(v2); if (v2.childNodes.length > 0 && this.getIsOpen(v2)) { if (v2.nextSibling != undefined) { v3.push(v2.nextSibling); } v2 = v2.firstChild; } else { if (v2.nextSibling != undefined) { v2 = v2.nextSibling; } else { if (v3.length == 0) { v4 = true; } else { v2 = v3.pop(); } } } } return v5; }; v2.getDisplayIndex = function (node) { return this.nodeIndices[node.getID()]; }; v2.setDisplayIndex = function (node, UID) { this.nodeIndices[node.getID()] = UID; }; v2.keyDown = function (e) { if (this.isOpening) { return undefined; } var v3 = this.__get__selectedNode(); if (e.ctrlKey) { super.keyDown(e); } else { if (e.code == 32) { if (this.getIsBranch(v3)) { var v6 = !this.getIsOpen(v3); this.setIsOpen(v3, v6, true, true); } } else { if (e.code == 37) { if (this.getIsOpen(v3)) { this.setIsOpen(v3, false, true, true); } else { this.__set__selectedNode(v3.parentNode); this.dispatchEvent({'type': 'change'}); var v5 = this.getDisplayIndex(this.__get__selectedNode()); if (v5 < this.__vPosition) { this.setVPosition(v5); } } } else { if (e.code == 39) { if (this.getIsBranch(v3)) { if (this.getIsOpen(v3)) { this.__set__selectedNode(v3.firstChild); this.dispatchEvent({'type': 'change'}); } else { this.setIsOpen(v3, true, true, true); } } } else { super.keyDown(e); } } } } }; v2.init = function () { super.init(); this.openNodes = new Object(); this.nodeIndices = new Object(); }; v2.invalidateStyle = function (propName) { if (this.isNewRowStyle[propName]) { this.invUpdateControl = true; this.invalidate(); } super.invalidateStyle(propName); }; v2.layoutContent = function (x, y, tW, tH, dW, dH) { var v5 = 0; var v6 = 0; var v3 = 0; while (v3 < this.rows.length) { var v4 = this.rows[v3].getDepth(); if (v4 > v5) { v5 = v4; v6 = v3; } ++v3; } var v7 = v5 + this.rows.length - v6; if (this.topRowZ < v7) { this.topRowZ = v7; } super.layoutContent(x, y, tW, tH, dW, dH); }; v2.draw = function (Void) { super.draw(); if (this.eventPending != undefined) { this.dispatchEvent({'type': this.getIsOpen(this.eventPending) ? 'nodeOpen' : 'nodeClose', 'node': this.eventPending}); delete this.eventPending; } }; v1.symbolName = 'Tree'; v1.symbolOwner = mx.controls.Tree; v2.className = 'Tree'; v1.version = '2.0.2.127'; v1.mixIt2 = mx.controls.treeclasses.TreeDataProvider.Initialize(XMLNode); v2.isNewRowStyle = {'depthColors': true, 'indentation': true, 'disclosureOpenIcon': true, 'disclosureClosedIcon': true, 'folderOpenIcon': true, 'folderClosedIcon': true, 'defaultLeafIcon': true}; v2.__rowRenderer = 'TreeRow'; v2.isOpening = false; v2.minScrollInterval = 50; v2.addProperty('firstVisibleNode', v2.__get__firstVisibleNode, v2.__set__firstVisibleNode); v2.addProperty('selectedNode', v2.__get__selectedNode, v2.__set__selectedNode); v2.addProperty('selectedNodes', v2.__get__selectedNodes, v2.__set__selectedNodes); ASSetPropFlags(mx.controls.Tree.prototype, null, 1); } #endinitclip } movieClip 184 __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 185 __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 186 __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 187 __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 188 __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 189 __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 190 __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 191 __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 192 __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 } movieClip 193 __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 194 __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 195 __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 196 __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 197 __Packages.mx.effects.Tween { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.effects) { _global.mx.effects = new Object(); } if (!_global.mx.effects.Tween) { var v1 = function (listenerObj, init, end, dur) { super(); if (listenerObj == undefined) { return undefined; } if (typeof init != 'number') { this.arrayMode = true; } this.listener = listenerObj; this.initVal = init; this.endVal = end; if (dur != undefined) { this.duration = dur; } this.startTime = getTimer(); if (this.duration == 0) { this.endTween(); } else { mx.effects.Tween.AddTween(this); } }; mx.effects.Tween = v1; var v2 = new Object(); mx.effects.Tween.prototype = v2; v1.AddTween = function (tween) { tween.ID = mx.effects.Tween.ActiveTweens.length; mx.effects.Tween.ActiveTweens.push(tween); if (mx.effects.Tween.IntervalToken == undefined) { mx.effects.Tween.Dispatcher.DispatchTweens = mx.effects.Tween.DispatchTweens; mx.effects.Tween.IntervalToken = setInterval(mx.effects.Tween.Dispatcher, 'DispatchTweens', mx.effects.Tween.Interval); } }; v1.RemoveTweenAt = function (index) { var v2 = mx.effects.Tween.ActiveTweens; if (index >= v2.length || index < 0 || index == undefined) { return undefined; } v2.splice(index, 1); var v4 = v2.length; var v1 = index; while (v1 < v4) { --v2[v1].ID; ++v1; } if (v4 == 0) { clearInterval(mx.effects.Tween.IntervalToken); delete mx.effects.Tween.IntervalToken; } }; v1.DispatchTweens = function (Void) { var v2 = mx.effects.Tween.ActiveTweens; var v3 = v2.length; var v1 = 0; while (v1 < v3) { v2[v1].doInterval(); ++v1; } updateAfterEvent(); }; v2.doInterval = function () { var v2 = getTimer() - this.startTime; var v3 = this.getCurVal(v2); if (v2 >= this.duration) { this.endTween(); } else { if (this.updateFunc != undefined) { this.listener[this.updateFunc](v3); } else { this.listener.onTweenUpdate(v3); } } }; v2.getCurVal = function (curTime) { if (this.arrayMode) { var v3 = new Array(); var v2 = 0; while (v2 < this.initVal.length) { v3[v2] = this.easingEquation(curTime, this.initVal[v2], this.endVal[v2] - this.initVal[v2], this.duration); ++v2; } return v3; } else { return this.easingEquation(curTime, this.initVal, this.endVal - this.initVal, this.duration); } }; v2.endTween = function () { if (this.endFunc != undefined) { this.listener[this.endFunc](this.endVal); } else { this.listener.onTweenEnd(this.endVal); } mx.effects.Tween.RemoveTweenAt(this.ID); }; v2.setTweenHandlers = function (update, end) { this.updateFunc = update; this.endFunc = end; }; v2.easingEquation = function (t, b, c, d) { return (c / 2) * (Math.sin(Math.PI * (t / d - 0.5)) + 1) + b; }; v1.ActiveTweens = new Array(); v1.Interval = 10; v1.Dispatcher = new Object(); v2.duration = 3000; ASSetPropFlags(mx.effects.Tween.prototype, null, 1); } #endinitclip } movieClip 198 __Packages.mx.controls.listclasses.SelectableRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.listclasses) { _global.mx.controls.listclasses = new Object(); } if (!_global.mx.controls.listclasses.SelectableRow) { var v1 = function () { super(); }; mx.controls.listclasses.SelectableRow = v1; var v2 = new mx.core.UIComponent(); mx.controls.listclasses.SelectableRow.prototype = v2; v2.setValue = function (itmObj, state) { var v7 = this.__height; var v2 = this.cell; var v5 = this.owner; var v8 = this.itemToString(itmObj); if (v2.getValue() != v8) { v2.setValue(v8, itmObj, state); } var v4 = (v5.getPropertiesAt(this.rowIndex + v5.__vPosition)).icon; if (v4 == undefined) { v4 = v5.__iconFunction(itmObj); if (v4 == undefined) { v4 = itmObj[v5.__iconField]; if (v4 == undefined) { v4 = v5.getStyle('defaultIcon'); } } } var v3 = this.icon_mc; if (v4 != undefined && itmObj != undefined) { v3 = this.createObject(v4, 'icon_mc', 20); v3._x = 2; v3._y = (v7 - v3._height) / 2; v2._x = 4 + v3._width; } else { v3.removeMovieClip(); v2._x = 2; } var v9 = (v3 == undefined) ? 0 : v3._width; v2.setSize(this.__width - v9, Math.min(v7, v2.getPreferredHeight())); v2._y = (v7 - v2._height) / 2; }; v2.size = function (Void) { var v3 = this.backGround; var v2 = this.cell; var v4 = this.__height; var v5 = this.__width; var v6 = (this.icon_mc == undefined) ? 0 : this.icon_mc._width; v2.setSize(v5 - v6, Math.min(v4, v2.getPreferredHeight())); v2._y = (v4 - v2._height) / 2; this.icon_mc._y = (v4 - this.icon_mc._height) / 2; v3._x = 0; v3._width = v5; v3._height = v4; this.drawRowFill(v3, this.normalColor); this.drawRowFill(this.highlight, this.highlightColor); }; v2.setCellRenderer = function (forceSizing) { var v3 = this.owner.__cellRenderer; var v4; if (this.cell != undefined) { v4 = this.cell._x; this.cell.removeMovieClip(); this.cell.removeTextField(); } var v2; if (v3 == undefined) { this.cell = this.createLabel('cll', 0, {'styleName': this}); v2 = this.cell; v2.styleName = this.owner; v2.selectable = false; v2.tabEnabled = false; v2.background = false; v2.border = false; } else { if (typeof v3 == 'string') { this.cell = this.createObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } else { this.cell = this.createClassObject(v3, 'cll', 0, {'styleName': this}); v2 = this.cell; } } v2.owner = this; v2.listOwner = this.owner; v2.getCellIndex = this.getCellIndex; v2.getDataLabel = this.getDataLabel; if (v4 != undefined) { v2._x = v4; } if (forceSizing) { this.size(); } }; v2.getCellIndex = function (Void) { return {'columnIndex': 0, 'itemIndex': this.owner.rowIndex + this.listOwner.__vPosition}; }; v2.getDataLabel = function () { return this.listOwner.labelField; }; v2.init = function (Void) { super.init(); this.tabEnabled = false; }; v2.createChildren = function (Void) { this.setCellRenderer(false); this.setupBG(); this.setState(this.state, false); }; v2.drawRow = function (itmObj, state, transition) { this.item = itmObj; this.setState(state, transition); this.setValue(itmObj, state, transition); }; v2.itemToString = function (itmObj) { if (itmObj == undefined) { return ' '; } var v2 = this.owner.__labelFunction(itmObj); if (v2 == undefined) { v2 = itmObj instanceof XMLNode ? itmObj.attributes[this.owner.__labelField] : itmObj[this.owner.__labelField]; if (v2 == undefined) { v2 = ' '; if (typeof itmObj == 'object') { for (var v4 in itmObj) { if (v4 != '__ID__') { v2 = itmObj[v4] + ', ' + v2; } } v2 = v2.substring(0, v2.length - 2); return v2; } v2 = itmObj; } } return v2; }; v2.setupBG = function (Void) { this.backGround = this.createEmptyMovieClip('bG_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH); var v2 = this.backGround; this.drawRowFill(v2, this.normalColor); this.highlight = this.createEmptyMovieClip('tran_mc', mx.controls.listclasses.SelectableRow.LOWEST_DEPTH + 10); v2.owner = this; v2.grandOwner = this.owner; v2.onPress = this.bGOnPress; v2.onRelease = this.bGOnRelease; v2.onRollOver = this.bGOnRollOver; v2.onRollOut = this.bGOnRollOut; v2.onDragOver = this.bGOnDragOver; v2.onDragOut = this.bGOnDragOut; v2.useHandCursor = false; v2.trackAsMenu = true; v2.drawRect = this.drawRect; this.highlight.drawRect = this.drawRect; }; v2.drawRowFill = function (mc, newClr) { mc.clear(); mc.beginFill(newClr); mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; v2.setState = function (newState, transition) { var v2 = this.highlight; var v8 = this.backGround; var v4 = this.__height; var v3 = this.owner; if (!v3.enabled) { if (newState == 'selected' || this.state == 'selected') { this.highlightColor = v3.getStyle('selectionDisabledColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v2._y = 0; v2._height = v4; } else { v2._visible = false; this.normalColor = v3.getStyle('backgroundDisabledColor'); this.drawRowFill(v8, this.normalColor); } this.cell.__enabled = false; this.cell.setColor(v3.getStyle('disabledColor')); } else { this.cell.__enabled = true; if (transition && (newState == this.state || newState == 'highlighted' && this.state == 'selected')) { this.isChangedToSelected = true; return undefined; } var v6 = v3.getStyle('selectionDuration'); var v7 = 0; if (this.isChangedToSelected && newState == 'selected') { transition = false; } var v10 = transition && v6 != 0; if (newState == 'normal') { v7 = v3.getStyle('color'); this.normalColor = this.getNormalColor(); this.drawRowFill(v8, this.normalColor); if (v10) { v6 /= 2; v2._height = v4; v2._width = this.__width; v2._y = 0; this.bGTween = new mx.effects.Tween(this, v4 + 2, v4 * 0.2, v6, 5); } else { v2._visible = false; } delete this.isChangedToSelected; } else { this.highlightColor = v3.getStyle((newState == 'highlighted') ? 'rollOverColor' : 'selectionColor'); this.drawRowFill(v2, this.highlightColor); v2._visible = true; v7 = v3.getStyle((newState == 'highlighted') ? 'textRollOverColor' : 'textSelectedColor'); if (v10) { v2._height = v4 * 0.5; v2._y = (v4 - v2._height) / 2; this.bGTween = new mx.effects.Tween(this, v2._height, v4 + 2, v6, 5); var v9 = v3.getStyle('selectionEasing'); if (v9 != undefined) { this.bGTween.easingEquation = v9; } } else { v2._y = 0; v2._height = v4; } } this.cell.setColor(v7); } this.state = newState; }; v2.onTweenUpdate = function (val) { this.highlight._height = val; this.highlight._y = (this.__height - val) / 2; }; v2.onTweenEnd = function (val) { this.onTweenUpdate(val); this.highlight._visible = this.state != 'normal'; }; v2.getNormalColor = function (Void) { var v3; var v2 = this.owner; if (!this.owner.enabled) { v3 = v2.getStyle('backgroundDisabledColor'); return v3; } var v5 = this.rowIndex + v2.__vPosition; if (this.rowIndex == undefined) { v3 = (v2.getPropertiesOf(this.item)).backgroundColor; } else { v3 = (v2.getPropertiesAt(v5)).backgroundColor; } if (v3 == undefined) { var v4 = v2.getStyle('alternatingRowColors'); if (v4 == undefined) { v3 = v2.getStyle('backgroundColor'); return v3; } v3 = v4[v5 % v4.length]; } return v3; }; v2.invalidateStyle = function (propName) { this.cell.invalidateStyle(propName); super.invalidateStyle(propName); }; v2.bGOnPress = function (Void) { this.grandOwner.pressFocus(); this.grandOwner.onRowPress(this.owner.rowIndex); }; v2.bGOnRelease = function (Void) { this.grandOwner.releaseFocus(); this.grandOwner.onRowRelease(this.owner.rowIndex); }; v2.bGOnRollOver = function (Void) { this.grandOwner.onRowRollOver(this.owner.rowIndex); }; v2.bGOnRollOut = function (Void) { this.grandOwner.onRowRollOut(this.owner.rowIndex); }; v2.bGOnDragOver = function (Void) { this.grandOwner.onRowDragOver(this.owner.rowIndex); }; v2.bGOnDragOut = function (Void) { this.grandOwner.onRowDragOut(this.owner.rowIndex); }; v1.LOWEST_DEPTH = -16384; v2.state = 'normal'; v2.disabledColor = 15263976; v2.normalColor = 16777215; ASSetPropFlags(mx.controls.listclasses.SelectableRow.prototype, null, 1); } #endinitclip } movieClip 199 __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 200 __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 201 __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 202 __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 203 __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 204 __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 205 __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 206 __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 207 __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 208 __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 209 __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 210 __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 211 __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 212 __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 213 __Packages.mx.controls.treeclasses.TreeRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.treeclasses) { _global.mx.controls.treeclasses = new Object(); } if (!_global.mx.controls.treeclasses.TreeRow) { var v1 = function () { super(); }; mx.controls.treeclasses.TreeRow = v1; var v2 = new mx.controls.listclasses.SelectableRow(); mx.controls.treeclasses.TreeRow.prototype = v2; v2.setValue = function (item, state) { this.node = item; var v4 = this.owner.getIsBranch(this.node); super.setValue(this.node, state); if (this.node == undefined) { this.nodeIcon._visible = false; this.disclosure._visible = this.nodeIcon._visible; return undefined; } this.nodeIcon._visible = true; this.open = this.owner.getIsOpen(this.node); var v6 = (this.owner.getNodeDepth(this.node) - 1) * this.getStyle('indentation'); var v5 = this.owner.getStyle(this.open ? 'disclosureOpenIcon' : 'disclosureClosedIcon'); this.disclosure = this.createObject(v5, 'disclosure', 3); this.disclosure.onPress = this.disclosurePress; this.disclosure.useHandCursor = false; this.disclosure._visible = v4; this.disclosure._x = v6 + 4; var v3 = this.owner.nodeIcons[this.node.getID()][this.open ? 'iconID2' : 'iconID']; if (v3 == undefined) { v3 = this.owner.__iconFunction(this.node); } if (v4) { if (v3 == undefined) { v3 = this.owner.getStyle(this.open ? 'folderOpenIcon' : 'folderClosedIcon'); } } else { if (v3 == undefined) { v3 = this.node.attributes[this.owner.iconField]; } if (v3 == undefined) { v3 = this.owner.getStyle('defaultLeafIcon'); } } this.nodeIcon.removeMovieClip(); this.nodeIcon = this.createObject(v3, 'nodeIcon', 20); this.nodeIcon._x = this.disclosure._x + this.disclosure._width + 2; this.cell._x = this.nodeIcon._x + this.nodeIcon._width + 2; this.size(); }; v2.getNormalColor = function () { this.node = this.item; var v6 = super.getNormalColor(); var v7 = this.rowIndex + this.owner.__vPosition; var v5 = this.owner.getColorAt(v7); if (v5 == undefined) { var v4 = this.owner.getStyle('depthColors'); if (v4 == undefined) { return v6; return v5; } var v3 = this.owner.getNodeDepth(this.node); if (v3 == undefined) { v3 = 1; } v5 = v4[(v3 - 1) % v4.length]; } return v5; }; v2.createChildren = function () { super.createChildren(); if (this.disclosure == undefined) { this.createObject('Disclosure', 'disclosure', 3, {'_visible': false}); this.disclosure.onPress = this.disclosurePress; this.disclosure.useHandCursor = false; } }; v2.size = function () { super.size(); this.disclosure._y = (this.__height - this.disclosure._height) / 2; this.nodeIcon._y = (this.__get__height() - this.nodeIcon._height) / 2; this.cell.setSize(this.__width - this.cell._x, this.__height); }; v2.disclosurePress = function () { var v3 = this._parent; var v2 = v3.owner; if (v2.isOpening || !v2.enabled) { return undefined; } var v4 = v3.open ? 90 : 0; v3.open = !this._parent.open; v2.pressFocus(); v2.releaseFocus(); v2.setIsOpen(v3.node, v3.open, true, true); }; v2.indentAdjust = 3; ASSetPropFlags(mx.controls.treeclasses.TreeRow.prototype, null, 1); } #endinitclip } movieClip 214 __Packages.mx.controls.RadioButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.RadioButton) { var v1 = function () { super(); }; mx.controls.RadioButton = v1; var v2 = new mx.controls.Button(); mx.controls.RadioButton.prototype = v2; v2.init = function (Void) { this.setToggle(this.__toggle); this.__value = this; super.init(); }; v2.size = function (Void) { super.size(); }; v2.onRelease = function () { if (this.selected) { return undefined; } this.releaseFocus(); this.phase = 'up'; this.setSelected(true); this.dispatchEvent({'type': 'click'}); this._parent[this.__groupName].dispatchEvent({'type': 'click'}); }; v2.setData = function (val) { this.__data = val; }; v2.__set__data = function (val) { this.__data = val; return this.__get__data(); }; v2.getData = function (val) { return this.__data; }; v2.__get__data = function () { return this.__data; }; v2.onUnload = function () { if (this._parent[this.__groupName].selectedRadio == this) { this._parent[this.__groupName].selectedRadio = undefined; } this._parent[this.__groupName].radioList[this.indexNumber] = null; delete this._parent[this.__groupName].radioList[this.indexNumber]; }; v2.setSelected = function (val) { var v2 = this._parent[this.__groupName]; var v4 = v2.selectedRadio.__width; var v5 = v2.selectedRadio.__height; if (val) { v2.selectedRadio.setState(false); v2.selectedRadio = this; } else { if (v2.selectedRadio == this) { v2.selectedRadio.setState(false); v2.selectedRadio = undefined; } } this.setState(val); }; v2.deleteGroupObj = function (groupName) { delete this._parent[groupName]; }; v2.getGroupName = function () { return this.__groupName; }; v2.__get__groupName = function () { return this.__groupName; }; v2.setGroupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } delete this._parent[this.__groupName].radioList[this.__data]; this.addToGroup(groupName); this.__groupName = groupName; }; v2.__set__groupName = function (groupName) { this.setGroupName(groupName); return this.__get__groupName(); }; v2.addToGroup = function (groupName) { if (groupName == '' || groupName == undefined) { return undefined; } var v2 = this._parent[groupName]; if (v2 == undefined) { this._parent[groupName] = new mx.controls.RadioButtonGroup(); v2 = this._parent[groupName]; v2.__groupName = groupName; } v2.addInstance(this); if (this.__state) { v2.selectedRadio.setState(false); v2.selectedRadio = this; } }; v2.__get__emphasized = function () { return undefined; }; v2.keyDown = function (e) { switch (e.code) { case 40: this.setNext(); break; case 38: this.setPrev(); break; case 37: this.setPrev(); break; case 39: this.setNext(); } }; v2.setNext = function () { var v2 = this._parent[this.__get__groupName()]; if (v2.selectedRadio.indexNumber + 1 == v2.radioList.length) { return undefined; } var v4 = v2.selectedRadio ? v2.selectedRadio.indexNumber : -1; var v3 = 1; while (v3 < v2.radioList.length) { if (v2.radioList[v4 + v3] != undefined && v2.radioList[v4 + v3].enabled) { var v5 = this.getFocusManager(); v2.radioList[v4 + v3].selected = true; v5.setFocus(v2.radioList[v2.selectedRadio.indexNumber]); v2.dispatchEvent({'type': 'click'}); break; } ++v3; } }; v2.setPrev = function () { var v2 = this._parent[this.__get__groupName()]; if (v2.selectedRadio.indexNumber == 0) { return undefined; } var v4 = v2.selectedRadio ? v2.selectedRadio.indexNumber : 1; var v3 = 1; while (v3 < v2.radioList.length) { if (v2.radioList[v4 - v3] != undefined && v2.radioList[v4 - v3].enabled) { var v5 = this.getFocusManager(); v2.radioList[v4 - v3].selected = true; v5.setFocus(v2.radioList[v2.selectedRadio.indexNumber]); v2.dispatchEvent({'type': 'click'}); break; } ++v3; } }; v2.__set__toggle = function (v) { return this.__get__toggle(); }; v2.__get__toggle = function () {}; v2.__set__icon = function (v) { return this.__get__icon(); }; v2.__get__icon = function () {}; v1.symbolName = 'RadioButton'; v1.symbolOwner = mx.controls.RadioButton; v1.version = '2.0.2.127'; v2.className = 'RadioButton'; v2.btnOffset = 0; v2.__toggle = true; v2.__label = 'Radio Button'; v2.__labelPlacement = 'right'; v2.ignoreClassStyleDeclaration = {'Button': 1}; v2.__groupName = 'radioGroup'; v2.indexNumber = 0; v2.offset = false; v2.falseUpSkin = ''; v2.falseDownSkin = ''; v2.falseOverSkin = ''; v2.falseDisabledSkin = ''; v2.trueUpSkin = ''; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = ''; v2.falseUpIcon = 'RadioFalseUp'; v2.falseDownIcon = 'RadioFalseDown'; v2.falseOverIcon = 'RadioFalseOver'; v2.falseDisabledIcon = 'RadioFalseDisabled'; v2.trueUpIcon = 'RadioTrueUp'; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = 'RadioTrueDisabled'; v2.centerContent = false; v2.borderW = 0; v2.clipParameters = {'labelPlacement': 1, 'data': 1, 'label': 1, 'groupName': 1, 'selected': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); v2.addProperty('data', v2.__get__data, v2.__set__data); v2.addProperty('emphasized', v2.__get__emphasized, function () {}); v2.addProperty('groupName', v2.__get__groupName, v2.__set__groupName); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); ASSetPropFlags(mx.controls.RadioButton.prototype, null, 1); } #endinitclip } movieClip 231 __Packages.mx.controls.RadioButtonGroup { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.RadioButtonGroup) { var v1 = function () { this.init(); mx.events.UIEventDispatcher.initialize(this); }; mx.controls.RadioButtonGroup = v1; var v2 = v1.prototype; v2.init = function (Void) { this.radioList = new Array(); }; v2.setGroupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } var v6 = this.__groupName; _parent[groupName] = this; for (var v5 in this.radioList) { this.radioList[v5].groupName = groupName; var v3 = this.radioList[v5]; } v3.deleteGroupObj(v6); }; v2.getGroupName = function () { return this.__groupName; }; v2.addInstance = function (instance) { instance.indexNumber = this.indexNumber++; this.radioList.push(instance); }; v2.getValue = function () { if (this.selectedRadio.data == '') { return this.selectedRadio.label; } else { return this.selectedRadio.__data; } }; v2.getLabelPlacement = function () { for (var v3 in this.radioList) { var v2 = this.radioList[v3].getLabelPlacement(); } return v2; }; v2.setLabelPlacement = function (pos) { for (var v3 in this.radioList) { this.radioList[v3].setLabelPlacement(pos); } }; v2.setEnabled = function (val) { for (var v3 in this.radioList) { this.radioList[v3].enabled = val; } }; v2.setSize = function (val, val1) { for (var v3 in this.radioList) { this.radioList[v3].setSize(val, val1); } }; v2.getEnabled = function () { for (var v4 in this.radioList) { var v2 = this.radioList[v4].enabled; var v3 = t + (v2 + 0); } if (v3 == this.radioList.length) { return true; } if (v3 == 0) { return false; } }; v2.setStyle = function (name, val) { for (var v4 in this.radioList) { this.radioList[v4].setStyle(name, val); } }; v2.setInstance = function (val) { for (var v3 in this.radioList) { if (this.radioList[v3] == val) { this.radioList[v3].selected = true; } } }; v2.getInstance = function () { return this.selectedRadio; }; v2.setValue = function (val) { for (var v4 in this.radioList) { if (this.radioList[v4].__data == val || this.radioList[v4].label == val) { var v2 = v4; break; } } if (v2 != undefined) { this.selectedRadio.setState(false); this.selectedRadio.hitArea_mc._height = this.selectedRadio.__height; this.selectedRadio.hitArea_mc._width = this.selectedRadio.__width; this.selectedRadio = this.radioList[v2]; this.selectedRadio.setState(true); this.selectedRadio.hitArea_mc._width = 0; this.selectedRadio.hitArea_mc._height = 0; } }; v2.__set__groupName = function (groupName) { if (groupName == undefined || groupName == '') { return undefined; } var v6 = this.__groupName; _parent[groupName] = this; for (var v5 in this.radioList) { this.radioList[v5].groupName = groupName; var v3 = this.radioList[v5]; } v3.deleteGroupObj(v6); return this.__get__groupName(); }; v2.__get__groupName = function () { return this.__groupName; }; v2.__set__selectedData = function (val) { for (var v4 in this.radioList) { if (this.radioList[v4].__data == val || this.radioList[v4].label == val) { var v2 = v4; break; } } if (v2 != undefined) { this.selectedRadio.setState(false); this.selectedRadio = this.radioList[v2]; this.selectedRadio.setState(true); } return this.__get__selectedData(); }; v2.__get__selectedData = function () { if (this.selectedRadio.data == '' || this.selectedRadio.data == undefined) { return this.selectedRadio.label; } else { return this.selectedRadio.__data; } }; v2.__get__selection = function () { return this.selectedRadio; }; v2.__set__selection = function (val) { for (var v3 in this.radioList) { if (this.radioList[v3] == val) { this.radioList[v3].selected = true; } } return this.__get__selection(); }; v2.__set__labelPlacement = function (pos) { for (var v3 in this.radioList) { this.radioList[v3].setLabelPlacement(pos); } return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { for (var v3 in this.radioList) { var v2 = this.radioList[v3].getLabelPlacement(); } return v2; }; v2.__set__enabled = function (val) { for (var v3 in this.radioList) { this.radioList[v3].enabled = val; } return this.__get__enabled(); }; v2.__get__enabled = function () { var v2 = 0; for (var v3 in this.radioList) { v2 += this.radioList[v3].enabled; } if (v2 == 0) { return false; } if (v2 == this.radioList.length) { return true; } }; v1.symbolName = 'RadioButtonGroup'; v1.symbolOwner = mx.controls.RadioButtonGroup; v1.version = '2.0.2.127'; v2.className = 'RadioButtonGroup'; v2.indexNumber = 0; v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled); v2.addProperty('groupName', v2.__get__groupName, v2.__set__groupName); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); v2.addProperty('selectedData', v2.__get__selectedData, v2.__set__selectedData); v2.addProperty('selection', v2.__get__selection, v2.__set__selection); ASSetPropFlags(mx.controls.RadioButtonGroup.prototype, null, 1); } #endinitclip } movieClip 232 __Packages.mx.controls.menuclasses.MenuDataProvider { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.menuclasses) { _global.mx.controls.menuclasses = new Object(); } if (!_global.mx.controls.menuclasses.MenuDataProvider) { var v1 = function () { super(); }; mx.controls.menuclasses.MenuDataProvider = v1; var v2 = new Object(); mx.controls.menuclasses.MenuDataProvider.prototype = v2; v1.Initialize = function (obj) { obj = obj.prototype; var v3 = mx.controls.menuclasses.MenuDataProvider.mixinProps; var v5 = v3.length; var v2 = 0; while (v2 < v5) { obj[v3[v2]] = mx.controls.menuclasses.MenuDataProvider.mixins[v3[v2]]; _global.ASSetPropFlags(obj, v3[v2], 1); ++v2; } return true; }; v2.addMenuItem = function (arg) { return this.addTreeNode(mx.controls.treeclasses.TreeDataProvider.convertToNode('menuitem', arg)); }; v2.addMenuItemAt = function (index, arg) { return this.addTreeNodeAt(index, mx.controls.treeclasses.TreeDataProvider.convertToNode('menuitem', arg)); }; v2.removeMenuItem = function (Void) { return this.removeTreeNode(); }; v2.removeMenuItemAt = function (index) { return (this.getTreeNodeAt(index)).removeTreeNode(); }; v2.getMenuItemAt = function (index) { return this.getTreeNodeAt(index); }; v2.indexOf = function (item) { var v2 = 0; while (v2 < this.childNodes.length) { if (this.childNodes[v2] == item) { return v2; } ++v2; } return undefined; }; v1.mixinProps = ['addMenuItem', 'addMenuItemAt', 'getMenuItemAt', 'removeMenuItem', 'removeMenuItemAt', 'normalize', 'indexOf']; v1.mixins = new mx.controls.menuclasses.MenuDataProvider(); ASSetPropFlags(mx.controls.menuclasses.MenuDataProvider.prototype, null, 1); } #endinitclip } movieClip 233 __Packages.mx.controls.Menu { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Menu) { var v1 = function () { super(); }; mx.controls.Menu = v1; var v2 = new mx.controls.listclasses.ScrollSelectList(); mx.controls.Menu.prototype = v2; v1.createMenu = function (parent, mdp, initObj) { if (parent == undefined) { parent = _root; } var pt = new Object(); pt.x = parent._root._xmouse; pt.y = parent._root._ymouse; parent._root.localToGlobal(pt); if (mdp == undefined) { mdp = new XML(); } var v3 = mx.managers.PopUpManager.createPopUp(parent, mx.controls.Menu, false, initObj, true); if (v3 == undefined) { trace('Failed to create a new menu, probably because there is no Menu in the Library'); return v3; } v3.isPressed = true; v3.mouseDownOutsideHandler = function (event) { if (!this.isMouseOverMenu() && !this.__activator.hitTest(pt.x, pt.y)) { this.hideAllMenus(); } }; v3.dataProvider = mdp; return v3; }; v1.isItemEnabled = function (itm) { var v1 = itm.attributes.enabled; return (v1 == undefined || v1 == true || v1.toLowerCase() == 'true') && itm.attributes.type.toLowerCase() != 'separator'; }; v1.isItemSelected = function (itm) { var v1 = itm.attributes.selected; return v1 == true || v1.toLowerCase() == 'true'; }; v2.init = function (Void) { super.init(); this.__set__visible(false); }; v2.createChildren = function (Void) { super.createChildren(); this.listContent.setMask(this.mask_mc); this.mask_mc.removeMovieClip(); this.border_mc.move(0, 0); this.border_mc.borderStyle = 'menuBorder'; }; v2.propagateToSubMenus = function (prop, value) { for (var v5 in this.__menuCache) { var v2 = this.__menuCache[v5]; if (v2 != this) { v2['set' + prop](value); } } }; v2.setLabelField = function (lbl) { super.setLabelField(lbl); this.propagateToSubMenus('LabelField', lbl); }; v2.setLabelFunction = function (lbl) { super.setLabelFunction(lbl); this.propagateToSubMenus('LabelFunction', lbl); }; v2.setCellRenderer = function (cR) { super.setCellRenderer(cR); this.propagateToSubMenus('CellRenderer', cR); }; v2.setRowHeight = function (v) { super.setRowHeight(v); this.propagateToSubMenus('RowHeight', v); }; v2.setIconField = function (v) { super.setIconField(v); this.propagateToSubMenus('IconField', v); }; v2.setIconFunction = function (v) { super.setIconFunction(v); this.propagateToSubMenus('IconFunction', v); }; v2.size = function (Void) { super.size(); var v3 = this.getViewMetrics(); this.layoutContent(v3.left, v3.top, this.__width - v3.left - v3.right, this.__height - v3.top - v3.bottom); }; v2.draw = function (Void) { if (this.invRowHeight) { super.draw(); this.listContent.setMask(this.mask_mc); this.invUpdateSize = true; } super.draw(); if (this.invUpdateSize) { this.updateSize(); } }; v2.onSetFocus = function () { super.onSetFocus(); (this.getFocusManager()).defaultPushButtonEnabled = false; }; v2.setDataProvider = function (dP) { if (typeof dP == 'string') { dP = (new XML(dP)).firstChild; } this.__menuDataProvider.removeEventListener('modelChanged', this); this.__menuDataProvider = dP; if (!(this.__menuDataProvider instanceof XML)) { this.__menuDataProvider.isTreeRoot = true; } this.__menuDataProvider.addEventListener('modelChanged', this); this.modelChanged({'eventName': 'updateTree'}); }; v2.getDataProvider = function () { return this.__menuDataProvider; }; v2.addMenuItem = function (arg) { return this.__menuDataProvider.addMenuItem(arg); }; v2.addMenuItemAt = function (index, arg) { return this.__menuDataProvider.addMenuItemAt(index, arg); }; v2.removeMenuItemAt = function (index) { var v2 = this.getMenuItemAt(index); if (v2 != undefined && v2 != null) { v2.removeMenuItem(); } return v2; }; v2.removeMenuItem = function (item) { return this.removeMenuItemAt(this.indexOf(item)); }; v2.removeAll = function (Void) { return this.__menuDataProvider.removeAll(); }; v2.getMenuItemAt = function (index) { return this.__menuDataProvider.getMenuItemAt(index); }; v2.setMenuItemSelected = function (item, select) { if (item.attributes.type == 'radio') { var v3 = this.getRootMenu(); this.groupName = item.attributes.groupName; v3[this.groupName].setGroupSelection(item); return undefined; } if (select != item.attributes.selected) { item.attributes.selected = select; item.updateViews({'eventName': 'selectionChanged', 'node': item}); } }; v2.setMenuItemEnabled = function (item, enable) { if (enable != item.attributes.enabled) { item.attributes.enabled = enable; item.updateViews({'eventName': 'enabledChanged', 'node': item}); } }; v2.indexOf = function (item) { return this.__menuDataProvider.indexOf(item); }; v2.show = function (x, y) { if (!this.__get__visible()) { var v2 = this.getRootMenu(); v2.dispatchEvent({'type': 'menuShow', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': this.__menuDataProvider}); if (x != undefined) { this._x = x; if (y != undefined) { this._y = y; } } if (this != v2) { var v5 = this._x + this._width - Stage.width; if (v5 > 0) { this._x -= v5; if (this._x < 0) { this._x = 0; } } } this.popupMask = this.attachMovie('BoundingBox', 'pMask_mc', 6000); this.setMask(this.popupMask); var v3 = this.__get__width(); if (v3 < 50) { v3 = 100; } this.popupMask._width = v3; this.popupMask._height = this.height; this.popupMask._x = -this.popupMask._width; this.popupMask._y = -this.popupMask._height; var v4 = this.getStyle('popupDuration'); if (this.wasJustCreated && v4 < 200) { v4 = 200; delete this.wasJustCreated; } this.popupTween = new mx.effects.Tween(this, [this.popupMask._x, this.popupMask._y], [0, 0], v4); this.__set__visible(true); this.isPressed = true; if (!this.__menuBar && v2 == this) { Selection.setFocus(this); } } }; v2.onTweenUpdate = function (val) { this.popupMask._width = this.width; this.popupMask._x = val[0]; this.popupMask._y = val[1]; }; v2.onTweenEnd = function (val) { this.popupMask._x = val[0]; this.popupMask._y = val[1]; this.setMask(undefined); this.popupMask.removeMovieClip(); }; v2.hide = function (Void) { if (this.__get__visible()) { for (var v2 in this.__activeChildren) { this.__activeChildren[v2].hide(); } this.__lastRowRolledOver = undefined; this.clearSelected(); if (this.anchorRow != undefined) { this.anchorRow.highlight._visible = false; } this.__set__visible(false); this.isPressed = false; this.__wasVisible = false; var v3 = this.getRootMenu(); v3.dispatchEvent({'type': 'menuHide', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': this.__menuDataProvider}); } }; v2.onKillFocus = function () { super.onKillFocus(); (this.getFocusManager()).defaultPushButtonEnabled = true; if (this.supposedToLoseFocus == undefined) { this.hideAllMenus(); } delete this.supposedToLoseFocus; }; v2.modelChanged = function (eventObj) { var v3 = eventObj.eventName; if (v3 == 'updateTree') { this.__dataProvider.removeAll(); this.__dataProvider.addItemsAt(0, this.__menuDataProvider.childNodes); this.invUpdateSize = true; this.invalidate(); super.modelChanged({'eventName': 'updateAll'}); this.deinstallAllItems(); this.installItem(this.__menuDataProvider); if (this.__menuCache == undefined) { this.__menuCache = new Object(); } this.__menuCache[this.__menuDataProvider.getID()] = this; } else { if (v3 == 'addNode' || v3 == 'removeNode') { var v5 = eventObj.node; var v6 = eventObj.parentNode; var v7 = this.__menuCache[v6.getID()]; if (v3 == 'removeNode') { this.deleteDependentSubMenus(v5); v7.removeItemAt(eventObj.index); this.deinstallItem(v5); } else { v7.addItemAt(eventObj.index, v5); this.installItem(v5); } v7.invUpdateSize = true; v7.invalidate(); var v8 = this.__menuCache[v6.parentNode.getID()]; v8.invUpdateControl = true; v8.invalidate(); } else { if (v3 == 'selectionChanged' || v3 == 'enabledChanged') { var v7 = this.__menuCache[eventObj.node.parentNode.getID()]; v7.invUpdateControl = true; v7.invalidate(); } else { super.modelChanged(eventObj); } } } }; v2.updateSize = function () { delete this.invUpdateSize; var v2 = this.calcHeight(); if (this.getLength() != this.__rowCount) { this.setSize(0, v2); } this.setSize(this.calcWidth(), v2); }; v2.calcWidth = function () { var v4 = -1; var v3; var v2 = 0; while (v2 < this.rows.length) { v3 = this.rows[v2].getIdealWidth(); if (v3 > v4) { v4 = v3; } ++v2; } var v5 = this.getStyle('textIndent'); if (v5 == undefined) { v5 = 0; } return v4 + v5; }; v2.calcHeight = function () { var v2 = this.getViewMetrics(); return this.__dataProvider.length * this.__rowHeight + v2.top + v2.bottom; }; v2.invalidateStyle = function (propName) { super.invalidateStyle(propName); for (var v4 in this.__activeChildren) { this.__activeChildren[v4].invalidateStyle(propName); } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); for (var v6 in this.__activeChildren) { this.__activeChildren[v6].notifyStyleChangeInChildren(sheetName, styleProp, newValue); } }; v2.deleteDependentSubMenus = function (menuItem) { var v2 = menuItem.childNodes; for (var v3 in v2) { this.deleteDependentSubMenus(v2[v3]); } var v4 = this.__menuCache[menuItem.getID()]; if (v4 != undefined) { v4.hide(); delete this.__menuCache[menuItem.getID()]; } }; v2.installItem = function (item) { if (item.attributes.instanceName != undefined) { var v6 = item.attributes.instanceName; if (this[v6] != undefined) { trace('WARNING: Duplicate menu item instanceNames - ' + v6); } if (this.__namedItems == undefined) { this.__namedItems = new Object(); } this.__namedItems[v6] = item; this[v6] = item; } if (item.attributes.type == 'radio' && item.attributes.groupName != undefined) { var v5 = item.attributes.groupName; var v2 = this[v5]; if (v2 == undefined) { v2 = new Object(); v2.name = v5; v2._rootMenu = this; v2._members = new Object(); v2._memberCount = 0; v2.getGroupSelection = this.getGroupSelection; v2.setGroupSelection = this.setGroupSelection; v2.addProperty('selection', v2.getGroupSelection, v2.setGroupSelection); if (this.__radioGroups == undefined) { this.__radioGroups = new Object(); } this.__radioGroups[v5] = v2; this[v5] = v2; } v2._members[item.getID()] = item; ++v2._memberCount; if (mx.controls.Menu.isItemSelected(item)) { v2.selection = item; } } var v3 = item.childNodes; for (var v7 in v3) { this.installItem(v3[v7]); } }; v2.deinstallItem = function (item) { var v2 = item.childNodes; for (var v5 in v2) { this.deinstallItem(v2[v5]); } if (item.attributes.instanceName != undefined) { var v7 = item.attributes.instanceName; delete this[v7]; delete this.__namedItems[v7]; } if (item.attributes.type == 'radio' && item.attributes.groupName != undefined) { var v6 = item.attributes.groupName; var v3 = this[v6]; if (v3 == undefined) { return undefined; } delete v3._members[item.getID()]; --v3._memberCount; if (v3._memberCount == 0) { delete this[v6]; delete this.__radioGroups[v6]; } else { if (v3.selection == item) { delete v3._selection; } } } }; v2.deinstallAllItems = function (Void) { for (var v2 in this.__namedItems) { delete this[v2]; } delete this.__namedItems; for (v2 in this.__radioGroups) { delete this[v2]; } delete this.__radioGroups; }; v2.getGroupSelection = function () { return this._selection; }; v2.setGroupSelection = function (item) { this._selection = item; for (var v4 in this._members) { var v2 = this._members[v4]; v2.attributes.selected = v2 == item; } item.updateViews({'eventName': 'selectionChanged', 'node': item}); }; v2.onRowRelease = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } var v5 = this.rows[rowIndex]; var v2 = v5.item; if (v2 != undefined && mx.controls.Menu.isItemEnabled(v2)) { var v10 = v2.attributes.type; var v4 = !v2.hasChildNodes() && v10 != 'separator'; if (v4) { this.hideAllMenus(); } var v6; var v3 = this.getRootMenu(); if (v10 == 'check' || v10 == 'radio') { this.setMenuItemSelected(v2, !mx.controls.Menu.isItemSelected(v2)); } if (v4) { v3.dispatchEvent({'type': 'change', 'menuBar': this.__menuBar, 'menu': v3, 'menuItem': v2, 'groupName': v2.attributes.groupName}); } } }; v2.onRowPress = function (rowIndex) { var v3 = this.rows[rowIndex].item; if (mx.controls.Menu.isItemEnabled(v3) && !v3.hasChildNodes()) { super.onRowPress(rowIndex); } }; v2.onRowRollOut = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } super.onRowRollOut(rowIndex); var v4 = this.rows[rowIndex].item; if (v4 != undefined) { var v5 = this.getRootMenu(); v5.dispatchEvent({'type': 'rollOut', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': v4}); } var v3 = this.__activeChildren[v4.getID()]; if (v4.hasChildNodes() > 0) { if (v3.isOpening || v3.isOpening == undefined) { this.cancelMenuDelay(); v3.isOpening = false; } if (v3.visible) { this.rows[rowIndex].drawRow(v4, 'selected', false); } } else { if (v3.isClosing || v3.isClosing == undefined) { this.cancelMenuDelay(); v3.isClosing = false; } } this.setTimeOut(this.__closeDelay, v4.getID()); }; v2.onRowRollOver = function (rowIndex) { if (!this.enabled || !this.selectable || !this.__get__visible()) { return undefined; } var v2 = this.rows[rowIndex]; var v8 = v2.item; var v6 = v8.getID(); var v4 = this.__activeChildren[this.__anchor]; var v5 = this.__activeChildren[v6]; this.clearSelected(); this.clearTimeOut(); this.__lastRowRolledOver = rowIndex; if (this.anchorRow != undefined) { this.anchorRow.drawRow(this.anchorRow.item, 'normal', false); delete this.anchorRow; } if (this.__parentMenu) { var v3 = this.__parentMenu.rows[this.__anchorIndex]; v3.drawRow(v3.item, 'selected', false); this.__parentMenu.anchorRow = v3; } if (v5.__activeChildren[v5.__anchor].visible) { v5.__activeChildren[v5.__anchor].hide(); } if (v4.visible && this.__anchor != v6) { v4.isClosing = true; this.setMenuDelay(this.__closeDelay, 'closeSubMenu', {'id': this.__anchor}); } if (v8 != undefined && mx.controls.Menu.isItemEnabled(v8)) { var v7 = this.getRootMenu(); v7.dispatchEvent({'type': 'rollOver', 'menuBar': this.__menuBar, 'menu': this, 'menuItem': v8}); if (v8.hasChildNodes() > 0) { this.anchorRow = v2; v2.drawRow(v8, 'selected', false); if (!v5.visible) { v5.isOpening = true; this.setMenuDelay(this.__openDelay, 'openSubMenu', {'item': v8, 'rowIndex': rowIndex}); } } else { v2.drawRow(v8, 'highlighted', false); } } }; v2.onRowDragOver = function (rowIndex) { var v4 = this.__dataProvider.getItemAt(rowIndex + this.__vPosition); if (mx.controls.Menu.isItemEnabled(v4)) { super.onRowDragOver(rowIndex); this.onRowRollOver(rowIndex); } }; v2.__onMouseUp = function () { clearInterval(this.dragScrolling); delete this.dragScrolling; delete this.isPressed; if (!this.selectable) { return undefined; } if (this.__wasVisible) { this.hide(); } this.__wasVisible = false; }; v2.setMenuDelay = function (delay, request, args) { if (this.__timer == null) { this.__timer = setInterval(this, 'callMenuDelay', delay, request, args); } else { this.__delayQueue.push({'delay': delay, 'request': request, 'args': args}); } }; v2.callMenuDelay = function (request, args) { this[request](args); this.clearMenuDelay(); }; v2.clearMenuDelay = function (Void) { clearInterval(this.__timer); this.__timer = null; this.runDelayQueue(); }; v2.cancelMenuDelay = function (Void) { var v2 = this.__delayQueue.pop(); this.clearMenuDelay(); }; v2.runDelayQueue = function (Void) { if (this.__delayQueue.length == 0) { return undefined; } var v2 = this.__delayQueue.shift(); var v4 = v2.delay; var v5 = v2.request; var v3 = v2.args; this.setMenuDelay(v4, v5, v3); }; v2.setTimeOut = function (delay, id) { this.clearTimeOut(); this.__timeOut = setInterval(this, 'callTimeOut', delay, id); }; v2.clearTimeOut = function (Void) { clearInterval(this.__timeOut); this.__timeOut = null; }; v2.callTimeOut = function (Void) { var v2 = this.__activeChildren[this.__anchor]; this.clearTimeOut(); if (!this.isMouseOverMenu() && v2) { var v3 = v2.__anchorIndex; var v5 = this.__dataProvider.getItemAt(v3 + this.__vPosition); var v4 = this.rows[v3]; v4.drawRow(v5, 'normal', false); v2.hide(); this.__delayQueue.length = 0; } }; v2.openSubMenu = function (o) { var v3 = this.getRootMenu(); var v5 = this.rows[o.rowIndex]; var v7 = o.item; this.__anchor = v7.getID(); var v6 = this.__anchor; var v2 = v3.__menuCache[v6]; if (v2 == undefined) { v2 = mx.managers.PopUpManager.createPopUp(v3, mx.controls.Menu, false, {'__parentMenu': this, '__anchorIndex': o.rowIndex, 'styleName': v3}, true); v2.labelField = v3.__labelField; v2.labelFunction = v3.__labelFunction; v2.iconField = v3.__iconField; v2.iconFunction = v3.__iconFunction; v2.wasJustCreated = true; v2.cellRenderer = v3.__cellRenderer; v2.rowHeight = v3.__rowHeight; if (v3.__menuCache == undefined) { v3.__menuCache = new Object(); v3.__menuCache[v3.__menuDataProvider.getID()] = v3; } if (this.__activeChildren == undefined) { this.__activeChildren = new Object(); } v3.__menuCache[v6] = v2; this.__activeChildren[v6] = v2; v2.__dataProvider.addItemsAt(0, v7.childNodes); v2.invUpdateSize = true; v2.invalidate(); } v2.__menuBar = this.__menuBar; var v4 = {'x': 0, 'y': 0}; v5.localToGlobal(v4); v5._root.globalToLocal(v4); v2.focusManager.lastFocus = undefined; v2.show(v4.x + v5.__width, v4.y); this.focusManager.lastFocus = undefined; v2.isOpening = false; }; v2.closeSubMenu = function (o) { var v2 = this.__activeChildren[o.id]; v2.hide(); v2.isClosing = false; }; v2.moveSelBy = function (incr) { var v3 = this.getSelectedIndex(); if (v3 == undefined) { v3 = -1; } var v2 = v3 + incr; if (v2 > this.__dataProvider.length - 1) { v2 = 0; } else { if (v2 < 0) { v2 = this.__dataProvider.length - 1; } } this.wasKeySelected = true; this.selectRow(v2 - this.__vPosition, false, false); var v4 = this.__dataProvider.getItemAt(v2 + this.__vPosition); if (v4.attributes.type == 'separator') { this.moveSelBy(incr); } }; v2.keyDown = function (e) { if (this.__lastRowRolledOver != undefined) { this.selectedIndex = this.__lastRowRolledOver; this.__lastRowRolledOver = undefined; } var v2 = this.selectedItem; if (Key.isDown(38)) { var v4 = this.getRootMenu(); var v3 = v4.__menuCache[v2.getID()]; if (v2.hasChildNodes() && v3.visible) { this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = v3.rows.length - 1; } else { this.moveSelBy(-1); } } if (Key.isDown(40)) { v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; if (v2.hasChildNodes() && v3.visible) { this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { this.moveSelBy(1); } } if (Key.isDown(39)) { if (mx.controls.Menu.isItemEnabled(v2) && v2.hasChildNodes()) { this.openSubMenu({'item': v2, 'rowIndex': this.selectedIndex}); v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { if (this.__menuBar) { this.supposedToLoseFocus = true; Selection.setFocus(this.__menuBar); this.__menuBar.keyDown(e); } } } if (Key.isDown(37)) { if (this.__parentMenu) { this.supposedToLoseFocus = true; this.hide(); Selection.setFocus(this.__parentMenu); } else { if (this.__menuBar) { this.supposedToLoseFocus = true; Selection.setFocus(this.__menuBar); this.__menuBar.keyDown(e); } } } if (Key.isDown(13) || Key.isDown(32)) { if (mx.controls.Menu.isItemEnabled(v2) && v2.hasChildNodes()) { this.openSubMenu({'item': v2, 'rowIndex': this.selectedIndex}); v4 = this.getRootMenu(); v3 = v4.__menuCache[v2.getID()]; this.supposedToLoseFocus = true; Selection.setFocus(v3); v3.selectedIndex = 0; } else { this.onRowRelease(this.selectedIndex); } } if (Key.isDown(27) || Key.isDown(9)) { this.hideAllMenus(); } }; v2.hideAllMenus = function (Void) { (this.getRootMenu()).hide(); }; v2.isMouseOverMenu = function (Void) { var v4 = new Object(); v4.x = _root._xmouse; v4.y = _root._ymouse; _root.localToGlobal(v4); if (this.border_mc.hitTest(v4.x, v4.y)) { return true; } var v5 = this.getRootMenu(); for (var v6 in v5.__menuCache) { var v3 = v5.__menuCache[v6]; if (v3.visible && v3.border_mc.hitTest(v4.x, v4.y)) { return true; } } return false; }; v2.getRootMenu = function (Void) { var v2 = this; while (v2.__parentMenu != undefined) { v2 = v2.__parentMenu; } return v2; }; v1.symbolName = 'Menu'; v1.symbolOwner = mx.controls.Menu; v2.className = 'Menu'; v1.version = '2.0.2.127'; v1.mixit = mx.controls.treeclasses.TreeDataProvider.Initialize(XMLNode); v1.mixit2 = mx.controls.menuclasses.MenuDataProvider.Initialize(XMLNode); v2.__hScrollPolicy = 'off'; v2.__vScrollPolicy = 'off'; v2.__rowRenderer = 'MenuRow'; v2.__rowHeight = 19; v2.__wasVisible = false; v2.__enabled = true; v2.__openDelay = 250; v2.__closeDelay = 250; v2.__delayQueue = new Array(); v2.__iconField = 'icon'; ASSetPropFlags(mx.controls.Menu.prototype, null, 1); } #endinitclip } movieClip 252 __Packages.mx.managers.PopUpManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.PopUpManager) { var v1 = function () {}; mx.managers.PopUpManager = v1; var v2 = v1.prototype; v1.createModalWindow = function (parent, o, broadcastOutsideEvents) { var v2 = parent.createChildAtDepth('Modal', mx.managers.DepthManager.kTopmost); v2.setDepthBelow(o); o.modalID = v2._name; v2._alpha = _global.style.modalTransparency; v2.tabEnabled = false; if (broadcastOutsideEvents) { v2.onPress = mx.managers.PopUpManager.mixins.onPress; } else { v2.onPress = mx.managers.PopUpManager.mixins.nullFunction; } v2.onRelease = mx.managers.PopUpManager.mixins.nullFunction; v2.resize = mx.managers.PopUpManager.mixins.resize; mx.managers.SystemManager.init(); mx.managers.SystemManager.addEventListener('resize', v2); v2.resize(); v2.useHandCursor = false; v2.popUp = o; o.modalWindow = v2; o.deletePopUp = mx.managers.PopUpManager.mixins.deletePopUp; o.setVisible = mx.managers.PopUpManager.mixins.setVisible; o.getVisible = mx.managers.PopUpManager.mixins.getVisible; o.addProperty('visible', o.getVisible, o.setVisible); }; v1.createPopUp = function (parent, className, modal, initobj, broadcastOutsideEvents) { if (mx.managers.PopUpManager.mixins == undefined) { mx.managers.PopUpManager.mixins = new mx.managers.PopUpManager(); } if (broadcastOutsideEvents == undefined) { broadcastOutsideEvents = false; } var v5 = parent._root; if (v5 == undefined) { v5 = _root; } while (parent != v5) { parent = parent._parent; } initobj.popUp = true; var v4 = parent.createClassChildAtDepth(className, (broadcastOutsideEvents || modal) ? mx.managers.DepthManager.kTopmost : mx.managers.DepthManager.kTop, initobj); var v2 = _root; var v6 = v2.focusManager != undefined; while (v2._parent != undefined) { v2 = v2._parent._root; if (v2.focusManager != undefined) { v6 = true; break; } } if (v6) { v4.createObject('FocusManager', 'focusManager', -1); if (v4._visible == false) { mx.managers.SystemManager.deactivate(v4); } } if (modal) { mx.managers.PopUpManager.createModalWindow(parent, v4, broadcastOutsideEvents); return v4; } if (broadcastOutsideEvents) { v4.mouseListener = new Object(); v4.mouseListener.owner = v4; v4.mouseListener.onMouseDown = mx.managers.PopUpManager.mixins.onMouseDown; Mouse.addListener(v4.mouseListener); } v4.deletePopUp = mx.managers.PopUpManager.mixins.deletePopUp; return v4; }; v2.onPress = function (Void) { var v3 = this.popUp._root; if (v3 == undefined) { v3 = _root; } if (this.popUp.hitTest(v3._xmouse, v3._ymouse, false)) { return undefined; } this.popUp.dispatchEvent({'type': 'mouseDownOutside'}); }; v2.nullFunction = function (Void) {}; v2.resize = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.setSize(v2.width, v2.height); this.move(v2.x, v2.y); }; v2.deletePopUp = function (Void) { if (this.modalWindow != undefined) { this._parent.destroyObject(this.modalWindow._name); } this._parent.destroyObject(this._name); }; v2.setVisible = function (v, noEvent) { super.setVisible(v, noEvent); this.modalWindow._visible = v; }; v2.getVisible = function (Void) { return this._visible; }; v2.onMouseDown = function (Void) { var v3 = this.owner._root; if (v3 == undefined) { v3 = _root; } var v4 = new Object(); v4.x = v3._xmouse; v4.y = v3._ymouse; v3.localToGlobal(v4); if (this.owner.hitTest(v4.x, v4.y, false)) { } else { this.owner.mouseDownOutsideHandler(this.owner); } }; v1.version = '2.0.2.127'; v1.mixins = undefined; ASSetPropFlags(mx.managers.PopUpManager.prototype, null, 1); } #endinitclip } movieClip 253 __Packages.mx.controls.menuclasses.MenuRow { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.menuclasses) { _global.mx.controls.menuclasses = new Object(); } if (!_global.mx.controls.menuclasses.MenuRow) { var v1 = function () { super(); }; mx.controls.menuclasses.MenuRow = v1; var v2 = new mx.controls.listclasses.SelectableRow(); mx.controls.menuclasses.MenuRow.prototype = v2; v2.setValue = function (itemObj, sel) { var v7 = this.cell; var v6 = this.itemToString(itemObj); if (v7.getValue() != v6) { v7.setValue(v6, itemObj, this.state); } var v8 = itemObj.hasChildNodes(); var v5 = mx.controls.Menu.isItemEnabled(itemObj); var v4 = itemObj.attributes.type; if (v4 == undefined) { v4 = 'normal'; } var v9 = mx.controls.Menu.isItemSelected(itemObj); var v3 = this.owner.__iconFunction(itemObj); if (v3 == undefined) { v3 = itemObj.attributes[this.owner.__iconField]; } if (v3 == undefined) { v3 = this.owner.getStyle('defaultIcon'); } if (this.icon_branch && (v8 != this.branch || v5 != this.isEnabled || this.type == 'separator')) { this.icon_branch.removeMovieClip(); delete this.icon_branch; } if (v9 != this.selected || v3 != this.iconID || v4 != this.type || v5 != this.isEnabled && v4 != 'normal') { this.icon_mc.removeMovieClip(); this.icon_sep.removeMovieClip(); delete this.icon_sep; delete this.icon_mc; } this.branch = v8; this.isEnabled = v5; this.type = v4; this.selected = v9; this.iconID = v3; this.cell.__enabled = this.isEnabled; this.cell.setColor(this.isEnabled ? this.owner.getStyle('color') : this.owner.getStyle('disabledColor')); if (sel == 'highlighted') { if (this.isEnabled) { this.cell.setColor(this.owner.getStyle('textRollOverColor')); } } else { if (sel == 'selected') { if (this.isEnabled) { this.cell.setColor(this.owner.getStyle('textSelectedColor')); } } } if (this.branch && this.icon_branch == undefined) { this.icon_branch = this.createObject('MenuBranch' + (this.isEnabled ? 'Enabled' : 'Disabled'), 'icon_branch', 20); } if (this.type == 'separator') { if (this.icon_sep == undefined) { var v10 = this.createObject('MenuSeparator', 'icon_sep', 21); } } else { if (this.icon_mc == undefined) { if (this.type != 'normal') { if (this.selected) { this.iconID = ((this.type == 'check') ? 'MenuCheck' : 'MenuRadio') + (this.isEnabled ? 'Enabled' : 'Disabled'); } else { this.iconID = undefined; } } if (this.iconID != undefined) { this.icon_mc = this.createObject(this.iconID, 'icon_mc', 21); } } } this.size(); }; v2.itemToString = function (itmObj) { if (itmObj.attributes.type == 'separator') { return ' '; } else { return super.itemToString(itmObj); } }; v2.size = function (Void) { super.size(); this.cell._x = this.lBuffer; this.cell.setSize(this.__width - this.rBuffer - this.lBuffer, Math.min(this.__height, this.cell.getPreferredHeight())); if (this.icon_branch) { this.icon_branch._x = this.__width - this.rBuffer / 2; this.icon_branch._y = (this.__height - this.icon_branch._height) / 2; } if (this.icon_sep) { this.icon_sep._x = 4; this.icon_sep._y = (this.__height - this.icon_sep._height) / 2; this.icon_sep._width = this.__width - 8; } else { if (this.icon_mc) { this.icon_mc._x = Math.max(0, (this.lBuffer - this.icon_mc._width) / 2); this.icon_mc._y = (this.__height - this.icon_mc._height) / 2; } } }; v2.getIdealWidth = function (Void) { this.cell.draw(); this.idealWidth = this.cell.getPreferredWidth() + 4 + this.lBuffer + this.rBuffer; return this.idealWidth; }; v2.isEnabled = true; v2.selected = false; v2.lBuffer = 18; v2.rBuffer = 15; ASSetPropFlags(mx.controls.menuclasses.MenuRow.prototype, null, 1); } #endinitclip } movieClip 254 __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 258 __Packages.mx.controls.CheckBox { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.CheckBox) { var v1 = function () { super(); }; mx.controls.CheckBox = v1; var v2 = new mx.controls.Button(); mx.controls.CheckBox.prototype = v2; v2.onRelease = function () { super.onRelease(); }; v2.init = function () { super.init(); }; v2.size = function () { super.size(); }; v2.__get__emphasized = function () { return undefined; }; v2.calcPreferredHeight = function () { var v5 = this._getTextFormat(); var v3 = (v5.getTextExtent2(this.labelPath.text)).height; var v4 = this.iconName._height; var v2 = 0; if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') { v2 = Math.max(v3, v4); return Math.max(14, v2); } v2 = v3 + v4; return Math.max(14, v2); }; v2.__set__toggle = function (v) { return this.__get__toggle(); }; v2.__get__toggle = function () {}; v2.__set__icon = function (v) { return this.__get__icon(); }; v2.__get__icon = function () {}; v1.symbolName = 'CheckBox'; v1.symbolOwner = mx.controls.CheckBox; v1.version = '2.0.2.127'; v2.className = 'CheckBox'; v2.ignoreClassStyleDeclaration = {'Button': 1}; v2.btnOffset = 0; v2.__toggle = true; v2.__selected = false; v2.__labelPlacement = 'right'; v2.__label = 'CheckBox'; v2.falseUpSkin = ''; v2.falseDownSkin = ''; v2.falseOverSkin = ''; v2.falseDisabledSkin = ''; v2.trueUpSkin = ''; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = ''; v2.falseUpIcon = 'CheckFalseUp'; v2.falseDownIcon = 'CheckFalseDown'; v2.falseOverIcon = 'CheckFalseOver'; v2.falseDisabledIcon = 'CheckFalseDisabled'; v2.trueUpIcon = 'CheckTrueUp'; v2.trueDownIcon = 'CheckTrueDown'; v2.trueOverIcon = 'CheckTrueOver'; v2.trueDisabledIcon = 'CheckTrueDisabled'; v2.clipParameters = {'label': 1, 'labelPlacement': 1, 'selected': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); v2.centerContent = false; v2.borderW = 0; v2.addProperty('emphasized', v2.__get__emphasized, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); ASSetPropFlags(mx.controls.CheckBox.prototype, null, 1); } #endinitclip } movieClip 275 __Packages.mx.controls.Label { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Label) { var v1 = function () { super(); }; mx.controls.Label = v1; var v2 = new mx.core.UIObject(); mx.controls.Label.prototype = v2; v2.init = function (Void) { super.init(); this._yscale = 100; this._xscale = 100; this.labelField.selectable = false; this.labelField.styleName = this; this.tabEnabled = false; this.tabChildren = false; this.useHandCursor = false; this._color = mx.core.UIObject.textColorList; }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.labelField.html; }; v2.setHtml = function (value) { if (value != this.labelField.html) { this.labelField.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.labelField; if (v2.html == true) { return v2.htmlText; } return v2.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.labelField; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } this.adjustForAutoSize(); } }; v2.__get__autoSize = function () { return this.__autoSize; }; v2.__set__autoSize = function (v) { if (_global.isLivePreview == true) { v = 'none'; } this.__autoSize = v; if (!this.initializing) { this.draw(); } return this.__get__autoSize(); }; v2.draw = function (Void) { var v2 = this.labelField; if (this.initializing) { var v4 = this.__get__text(); this.initializing = false; this.setText(v4); delete this.initText; } if (v2.html) { v4 = v2.htmlText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } if (v2.html) { v2.htmlText = v4; } this.adjustForAutoSize(); }; v2.adjustForAutoSize = function () { var v2 = this.labelField; var v3 = this.__autoSize; if (v3 != undefined && v3 != 'none') { v2._height = v2.textHeight + 3; var v4 = this.__width; this.setSize(v2.textWidth + 4, v2._height); if (v3 == 'right') { this._x += v4 - this.__width; } else { if (v3 == 'center') { this._x += (v4 - this.__width) / 2; } else { if (v3 == 'left') { this._x += 0; } } } } else { v2._x = 0; v2._width = this.__width; v2._height = this.__height; } }; v2.size = function (Void) { var v2 = this.labelField; v2._width = this.__width; v2._height = this.__height; }; v2.setEnabled = function (enable) { var v2 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v2 == undefined) { v2 = enable ? 0 : 8947848; } this.setColor(v2); }; v2.setColor = function (col) { this.labelField.textColor = col; }; v2.__get__styleSheet = function () { return this.labelField.styleSheet; }; v2.__set__styleSheet = function (v) { this.labelField.styleSheet = v; return this.__get__styleSheet(); }; v1.symbolName = 'Label'; v1.symbolOwner = Object(mx.controls.Label); v2.className = 'Label'; v1.version = '2.0.2.127'; v2.initializing = true; v2.clipParameters = {'text': 1, 'html': 1, 'autoSize': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Label.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('autoSize', v2.__get__autoSize, v2.__set__autoSize); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('styleSheet', v2.__get__styleSheet, v2.__set__styleSheet); v2.addProperty('text', v2.__get__text, v2.__set__text); ASSetPropFlags(mx.controls.Label.prototype, null, 1); } #endinitclip } frame 2 { this.gotoAndPlay('Preloader_1'); } frame 5 { function Init_Header() { _root.Label_Day.setStyle('fontSize', 16); _root.Label_Bits.setStyle('fontSize', 16); _root.Label_Points.setStyle('fontSize', 16); if (Sys.English == true) { _root.Label_Bits.text = 'Bits: ' + Sys.Bits; _root.Label_Day.text = 'Day: ' + Sys.Tag; _root.Label_Points.text = 'Special Points: ' + Sys.Objective_Points; } else { _root.Label_Bits.text = 'Bits: ' + Sys.Bits; _root.Label_Day.text = 'Tag: ' + Sys.Tag; _root.Label_Points.text = 'Spezialpunkte: ' + Sys.Objective_Points; } } function Rand(min, max) { var v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; } function leadingZero(num) { if (num < 10) { return '0000' + num; } if (num >= 10 && num < 100) { return '000' + num; } if (num >= 100 && num < 1000) { return '00' + num; } if (num >= 1000 && num < 10000) { return '0' + num; } return num.toString(); } function leadingZero_2(num) { if (num < 10) { return '0' + num; } return num.toString(); } function Clear_NSFW() { Button_Artist.visible = false; _root.IMG_Hospital._visible = false; _root.IMG_Sleep._visible = false; k = 0; while (k < All_Mares.length) { eval('_root.IMG_' + All_Mares[k] + '_1._visible') = false; eval('_root.IMG_' + All_Mares[k] + '_2._visible') = false; eval('_root.IMG_' + All_Mares[k] + '_3._visible') = false; if (eval(All_Mares[k] + '.Special') != 'None') { j = 0; while (j < this['All_Mares[' + k + '].Special'].length) { eval('_root.IMG_' + All_Mares[k] + '_' + Special_[j] + '._visible') = false; ++j; } } ++k; } } function Clear_Bulletin_Images() { k = 0; while (k < All_Mares.length) { eval('_root.IMG_' + All_Mares[k] + '_Bulletin._visible') = false; ++k; } } function Sort_Mares() { k = 0; while (k < All_Mares.length) { if (k == 0) { Sort_Temp.push(All_Mares[k]); } else { l = 0; j = 0; while (j < Sort_Temp.length) { if (eval(All_Mares[k] + '.Price') > eval(Sort_Temp[j] + '.Price')) { ++l; } else { j = Sort_Temp.length; } ++j; } Sort_Temp.splice(l, 0, All_Mares[k]); } ++k; } All_Mares = Sort_Temp.slice(0); Available_Mares = Sort_Temp.slice(0); } var Skip = false; var Sort_Temp = new Array(); var First_Run = true; var Objective_Failed = false; var i = 0; var j = 0; var k = 0; var l = 0; var temp = ''; var temp_2 = ''; var Eventname = 'Haupt'; var RND = 0; var Backlog = ''; var Temp_HP = 0; var Skillpoints = 0; var Referenz = new Array(); var Sys = {'Version': '', 'Anthro': false, 'Human': false, 'Creatures': false, 'Relaxed_Mode': false, 'Failsafe_Mode': false, 'English': true, 'Tag': 0, 'Bits': 120, 'Objective_lvl': 1, 'Objective_Rank': 1, 'Objective_Day': 25, 'Objective_Points': 0, 'Locked_Pics': 0, 'Unlocked_Pics': 0}; var NSFW = true; var Pic_Mode = true; var Objective_Rank_1_EN = ['Have at least 300 Bits ', 'Have at least 3 Mares with Rank 2 or higher ', 'Have at least 1 Mares with Rank 3 or higher ', 'Have at least 3 Mares with Rank 3 or higher ', 'Have at least 1 Mares with Rank 4 or higher ', 'Have at least 4 Mares with Rank 4 or higher ', 'Have at least 1 Mares with Rank 5 or higher ', 'Have at least 5 Mares with Rank 5 or higher ', 'Have at least 1 Mares with Rank 6 or higher ', 'Have at least 5 Mares with Rank 6 or higher ', 'Have at least 9 Mares with Rank 6 or higher ', 'Have at least 12 Mares with Rank 6 or higher ', 'There are currently no more objectives for you.']; var Objective_Rank_2_EN = ['Have at least 2 Mares ', 'Have at least 4 Mares ', 'Have at least 3 Mares with rank 2 or higher ', 'Have at least 2 Mares with Rank 3 or higher ', 'Have at least 3 Mares with Rank 3 or higher ', 'Have at least 3 Mares with Rank 4 or higher ', 'Have at least 5 Mares with Rank 4 or higher ', 'Have at least 3 Mares with Rank 5 or higher ', 'Have at least 3 Mares with Rank 6 or higher ', 'Have at least 5 Mares with Rank 6 or higher ', 'Have at least 7 Mares with Rank 6 or higher ', 'Have at least 9 Mares with Rank 6 or higher ', 'There are currently no more objectives for you.']; var Objective_Rank_3_EN = ['Have at least 3 rooms ', 'Have at least 3 Mares ', 'Have at least 2 Mares with Rank 2 or higher ', 'Have at least 1 Mares with Rank 3 or higher ', 'Have at least 2 Mares with Rank 3 or higher ', 'Have at least 1 Mares with Rank 4 or higher ', 'Have at least 3 Mares with Rank 4 or higher ', 'Have at least 1 Mares with Rank 5 or higher ', 'Have at least 1 Mares with Rank 6 or higher ', 'Have at least 3 Mares with Rank 6 or higher ', 'Have at least 5 Mares with Rank 6 or higher ', 'Have at least 7 Mares with Rank 6 or higher ', 'There are currently no more objectives for you.']; var Objective_Rank_4_EN = ['You failed all objectives.']; var Objective_Rank_1_DE = ['Besitze mindestens 300 Bits ', 'Besitze mindestens 3 Stuten mit Rang 2 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 4 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 5 ', 'Besitze mindestens 5 Stuten mit Rang 5 ', 'Besitze mindestens 1 Stuten mit Rang 6 ', 'Besitze mindestens 5 Stuten mit Rang 6 ', 'Besitze mindestens 9 Stuten mit Rang 6 ', 'Besitze mindestens 12 Stuten mit Rang 6 ', 'Es gibt im Moment keine neuen Aufgaben für dich.']; var Objective_Rank_2_DE = ['Besitze mindestens 2 Mares ', 'Besitze mindestens 4 Mares ', 'Besitze mindestens 3 Stuten mit Rang 2 oder höher ', 'Besitze mindestens 2 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 5 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 5 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 5 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 7 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 9 Stuten mit Rang 6 oder höher ', 'Es gibt im Moment keine neuen Aufgaben für dich.']; var Objective_Rank_3_DE = ['Besitze mindestens 3 rooms ', 'Besitze mindestens 3 Mares ', 'Besitze mindestens 2 Stuten mit Rang 2 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 2 Stuten mit Rang 3 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 4 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 5 oder höher ', 'Besitze mindestens 1 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 3 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 5 Stuten mit Rang 6 oder höher ', 'Besitze mindestens 7 Stuten mit Rang 6 oder höher ', 'Es gibt im Moment keine neuen Aufgaben für dich.']; var Objective_Rank_4_DE = ['Du bist bei allen deinen Aufgaben gescheitert.']; var Mares = new Array(); var All_Mares = new Array(); var Anthro_Mares = new Array(); var Humanized_Mares = new Array(); var Creature_Rooster = new Array(); var Anthro_Creatures = new Array(); var Human_Creatures = new Array(); var Sick_Mares = new Array(); var House_Mares = new Array(); var Canterlot_House_Mares = new Array(); var Outskirt_House_Mares = new Array(); var Prison_House_Mares = new Array(); var Available_Mares = new Array(); var Daily_Cost = 0; var Daily_Profit = 0; var Mistress_Cost = 0; var Max_Customers = 0; var Customers = 0; var Special_Mare = ''; var Special = false; var Special_Number = 0; All_Mares = ['Twilight', 'Rainbow', 'Fluttershy', 'Applejack', 'Rarity', 'Pinkie', 'Zecora', 'Octavia', 'Vinyl', 'Spa', 'Fleur', 'Maud', 'Trixie', 'Cheerilee', 'Coco', 'Starlight', 'Cadence', 'Luna', 'Celestia', 'Nightmare', 'Lyra', 'Nightmare_Rarity', 'Derpy', 'Daring_Do', 'Bonbon', 'Redheart', 'Moondancer', 'Sassy', 'Coloratura']; Anthro_Mares = ['Twilight_AN', 'Fluttershy_AN', 'Rainbow_AN', 'Pinkie_AN', 'Rarity_AN', 'Applejack_AN', 'Nightmare_AN', 'Luna_AN', 'Lyra_AN', 'Octavia_AN', 'Celestia_AN', 'Velvet_AN', 'Fleur_AN', 'Cadence_AN', 'Sunset_AN', 'Trixie_AN', 'Nightmare_Rarity_AN', 'Daring_Do_AN', 'Derpy_AN', 'Bonbon_AN', 'Dust_AN', 'Redheart_AN', 'Moondancer_AN', 'Sassy_AN', 'Spa_AN', 'Vinyl_AN']; Humanized_Mares = ['Twilight_HU', 'Rainbow_HU', 'Applejack_HU', 'Celestia_HU', 'Pinkie_HU', 'Fluttershy_HU', 'Rarity_HU', 'Luna_HU']; Creature_Rooster = ['Gilda', 'Flutterbat', 'Ember', 'Chrysalis', 'Gaby']; Anthro_Creatures = ['Chrysalis_AN']; Human_Creatures = ['Chrysalis_HU']; var Temps = {'Name': '', 'Bits': 0, 'Worth': 0, 'Health': 0, 'Exp': 0, 'Rank': 0}; var Promo_Temp = {'Worth': 0, 'Obediance': 0, 'Endurance': 0, 'Charisma': 0, 'Skill': 0, 'Attraction': 0, 'Cost': 0, 'Rank': 0, 'Exp': 0}; var House = {'Rooms': 1, 'Doctor': false, 'Mistress': false, 'Teacher': false, 'Nurse': false, 'Doctor_Price': 10000, 'Mistress_Price': 500, 'Teacher_Price': 2500, 'Nurse_Price': 100, 'Doctor_Bought': false, 'Mistress_Bought': false, 'Teacher_Bought': false, 'Nurse_Bought': false, 'Price': ['0', '100', '100', '250', '250', '250', '500', '500', '500', '750', '750', '1000', '1000', ' 2000', '2000', '5000', '5000', '10000', '10000', '15000', '15000', '20000', '20000', '20000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999']}; var Canterlot_House = {'Rooms': 1, 'Doctor': false, 'Mistress': false, 'Teacher': false, 'Nurse': false, 'Doctor_Price': 10000, 'Mistress_Price': 500, 'Teacher_Price': 2500, 'Nurse_Price': 100, 'Doctor_Bought': false, 'Mistress_Bought': false, 'Teacher_Bought': false, 'Nurse_Bought': false, 'Price': ['0', '100', '100', '250', '250', '250', '500', '500', '500', '750', '750', '1000', '1000', ' 2000', '2000', '5000', '5000', '10000', '10000', '15000', '15000', '20000', '20000', '20000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999']}; var Outskirt_House = {'Rooms': 1, 'Doctor': false, 'Mistress': false, 'Teacher': false, 'Nurse': false, 'Doctor_Price': 10000, 'Mistress_Price': 500, 'Teacher_Price': 2500, 'Nurse_Price': 100, 'Doctor_Bought': false, 'Mistress_Bought': false, 'Teacher_Bought': false, 'Nurse_Bought': false, 'Price': ['0', '100', '100', '250', '250', '250', '500', '500', '500', '750', '750', '1000', '1000', ' 2000', '2000', '5000', '5000', '10000', '10000', '15000', '15000', '20000', '20000', '20000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999']}; var Prison_House = {'Rooms': 1, 'Doctor': false, 'Mistress': false, 'Teacher': false, 'Nurse': false, 'Doctor_Price': 10000, 'Mistress_Price': 500, 'Teacher_Price': 2500, 'Nurse_Price': 100, 'Doctor_Bought': false, 'Mistress_Bought': false, 'Teacher_Bought': false, 'Nurse_Bought': false, 'Price': ['0', '100', '100', '250', '250', '250', '500', '500', '500', '750', '750', '1000', '1000', ' 2000', '2000', '5000', '5000', '10000', '10000', '15000', '15000', '20000', '20000', '20000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '25000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '50000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '75000', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999', '99999']}; var Office = {'Level': 1, 'Page': 1, 'Help': false, 'Max_Pages': 0, 'Gallery': false, 'Statistics': false, 'Gallery_Price': 300000, 'Statistics_Price': 5000, 'Upgrade_Price': ['0', '5000', '50000', '150000']}; var Current_Pic = {'Name': '', 'Artist': '', 'Link': ''}; var Twilight_EN_Summary = 'Twilight Sparkle is the local librarian of Ponyville. Personal student of her royal majesty princess Celestia and one of the most talented Unicorns of her time. She is looking for a change of pace and something completly unrelated with magic to get her mind free and to help her with her social skills.'; var Fluttershy_EN_Summary = 'Fluttershy is a timid Pegasus who usually prefers no company at all. Behind her calm and shy exterior there is a fascinating mare that can hold her ground against any foe. Normally she surrounds herself with just her animals but now she is trying to open up more and this may be her best chance.'; var Bonbon_EN_Summary = 'Bonbon has a very sweet taste but she savours nearly every flavour. Especially when it comes to stallions she is always eager to aquire new tastes.'; var Rainbow_EN_Summary = 'Junior speedstar and daredevil Rainbow Dash is a fast paced flyer who is always up for the challenge. Training to become a Wonderbolt requires lots of training and generates a lot of pressure with time. The young Pegasus is looking for some fun on the side and to release some of that pressure.'; var Gilda_EN_Summary = 'Former classmate of Rainbow Dash and a jung flyer herself. She is keen on finding the next cool thing and is willing to try nearly everything to find that special kick.'; var Applejack_EN_Summary = 'Hard working farmer Applejack is a strong and sturdy earth pony from the countryside. Life on thefarm can be quite stressfull and so she seeks a way to let off some steam. A good roll in the hay always got her spirits back up.'; var Redheart_EN_Summary = 'Redheart works at the ponyville hospital where she tends to the sick. Her urge to tend to everyones needsdoes not vanish once she leaves the hospital. Taking care of tensions is her favorite.'; var Rarity_EN_Summary = 'Rarity is a very talented seamstress in Ponyville. Always dreaming about meeting her prince charming, she decided that it was time to get a little side action while waiting. '; var Coco_EN_Summary = 'A young aspiring seamstress keen on living up to the high expectations Rarity put on her back in Manehatten. A mare who aims to please in any way needed.'; var Derpy_EN_Summary = 'The young bubbly post mare of Ponyville might seem a bit distracted or confused at times, but she always does her best to make ponies happy.'; var Dust_EN_Summary = 'Lightning Dust has a lot in common with Rainbow Dash. They share the same dream even though they have different views on how to achieve them. She is very competitive.'; var Pinkie_EN_Summary = 'Pinkie Pie usually works in the local bakery and sweets shop Shugarcube Corner. She also is the most active party planner in all of Ponyville, probably Equestria. Fun is her way of life and there is nothing more fun than making a lot of ponies happy using her body.'; var Maud_EN_Summary = 'Pinkie Pies stoic older sister. She is into rocks. That is pretty much it.'; var Cheerilee_EN_Summary = 'Local teacher and cheerleader Cheerilee loves to teach. Her job may be teaching foals, but she also has a few tricks she is more than willing to teach to any paying adult.'; var Ember_EN_Summary = 'Ember is a princess from the dragonlands. Daughter of the king and thanks to spike heir to his throne. She is highly curious about the ponies who made spike into such a strange dragon.'; var Zecora_EN_Summary = 'Zecora is a mysterious zebra living in the dark everfree forrest. Not much is known about her past but she does love to get close to the local ponies since they accepted her. Very close.'; var Daring_Do_EN_Summary = 'Tomb Raider and Daredevil Daring Do is always down for some action.'; var Velvet_EN_Summary = 'Mother of Twilight Sparkle and Shining Armor. Married to Night Light. Still unsatisfied. Go figure!'; var Octavia_EN_Summary = 'Octavia van Clef is a very talented earth pony who plays the cello. Her skilled hooves can play both, an instrument and alos anoter pony. In her magical hooves every mare and stallion becomes her instrument.'; var Vinyl_EN_Summary = 'Vinyl Scratch is more commonly known under her stage name DJ-PON3. Loud noises, aggresive lights and heavy drinking are part of her job as well as very explicit partys. A thing she can never get enough of.'; var Lyra_EN_Summary = 'Lyra has a strange obsession with otherworldly beeings. Aside from that quirk of her, she is a very talented lyra player and fun mare to be around.'; var Spa_EN_Summary = 'The twin sisters Lotus and Aloe are very experienced when it comes to pleasuring a body. They don\'t offer special services in their spa but they do love to please. If they promise you a happy end, you most certainly will get one.'; var Nightmare_Rarity_EN_Summary = 'Even the Element of Generosity can be corrupted. In her nightmare form she is set out on revenge but also some fun.'; var Gaby_EN_Summary = 'A curious young griffon who works as a courier and is always eager to make new aquintances.'; var Fleur_EN_Summary = 'Fleur is a sophisticated mare from canterlot. Working as a model she made it to the top of the industrie and her husband Fancy Pants. The famous fashion designer sadly has very little time to do his maternal duties and so she seeks some other forms of relief.'; var Trixie_EN_Summary = 'Once a boasting showmare she is now working to change her personality to something a little bit more positive. '; var Sunset_EN_Summary = 'Former student of princess Celestia and banished to an alternate universe she is finally back to make up for the missed time.'; var Starlight_EN_Summary = 'Starlight Glimmer once was mayor of her own little settlement of nearly mindless slaves. Through Twilight Sparkle she saw the errors of her past and is now working hard to redeem herself.'; var Flutterbat_EN_Summary = 'A tragic mistake in one of Twilights spells created this mutant form of Fluttershy. Not only her appearance is quite different, also her personality. The shy pegasus got her typical shy character turned inside out and was left with a very strong minded and very very hungry mind.'; var Cadence_EN_Summary = 'The princess of love herself. Ruler of the crystal empire and protector of the crystal heart.'; var Chrysalis_EN_Summary = 'Queen of the changelings. After her failed invasion in Canterlot she tries to get more detailed informations about pony love. This job is her big chance on getting a first hoof Exp of affection and lust.'; var Nightmare_EN_Summary = 'The eternal queen of the night and nemesis of the sun. She has only one thing on her mind and that is to bring eternal night. This time though, she tries to show the ponies how much better nighttime can be compared to the dull work by daylight.'; var Luna_EN_Summary = 'The princess of the night. Ruler of the Moon and creator of the stars. Princess Luna was once trapped inside the moon for a thousand years and is now seeking to catch up with everything she missed. That also includes her sex life.'; var Celestia_EN_Summary = 'The princess of the day. Ruler of the Sun. The ever watchful emperor who turned Equestria into into a utopia for those living in it. Constantly guiding her little ponies towards peace and enlightment she sometimes does get a bit lonely on the throne.'; var Moondancer_EN_Summary = 'Bookworm and nerd. She used to be a classmate of Twilight Sparkle. She never found many friends but a lot of books. She has a lot to catch up to.'; var Sassy_EN_Summary = 'The ambitious manager of Raritys Boutique in Canterlot. She is very focused on her task and does whatever it takes to promote her buisness and herself.'; var Twilight_DE_Summary = 'Twilight Sparkle die Leiterin der Ponyville Bücherei. Persönliche Schülerin von Prinzessin Celestia und eines der talentiertesten Einhörner ihrer Zeit. Sie ist auf der Suche nach einem Ausgleich zu ihren magischen Studien der ihr zudem helfen kann ihre sozialen Kompetenzen zu verbessern.'; var Fluttershy_DE_Summary = 'Fluttershy ist eine schüchterne Pegasus Stute die am liebsten alleine ist. Hinter ihrer ruhigen Fassade schlummert eine Stute die sich vor niemanden zu verstecken braucht. Normalerweise umgibt sie sich nur mit ihren Tieren doch sie möchte etwas mehr mit Ponys zu tun haben und hofft dass ihr diese Arbeit dabei helfen könnte. '; var Bonbon_DE_Summary = 'Bonbon liebt süßes. Sie ist ständig auf der Suche nach neuen Geschmäckern und wo könnte man mehr davon finden als hier? Jeder Hengst ist ein neues Geschmackserlebnis für sie.'; var Rainbow_DE_Summary = 'Die junge Rennfliegerin Rainbow Dash ist immer für eine Herausforderung zu haben. Das Training um irgendwann einmal eine der berühmten Wonderbolts zu werden ist jedoch anstrengend und sehr stressig. Sie braucht von Zeit zu Zeit eine Pause und etwas das ihr Hilf den Stress abzubauen.'; var Gilda_DE_Summary = 'Früher war sie Rainbow Dashs Klassenkameradin. Jetzt ist sie ständig auf der Suche nach dem nächsten kick.'; var Applejack_DE_Summary = 'Die schwer arbeitende Applejack ist ein robustes Erdpony vom Land. Das Leben auf der Farm kann mitunter sehr anstrendend und stressig sein und ab und zu braucht sie eine Pause um Dampf abzulassen.'; var Redheart_DE_Summary = 'Redheart arbeitet im Krankenhaus von Ponyville wo sie sich um die Patienten kümmert. Ihr Bedürfnis anderen zu helfen endet jedoch nicht am Ende ihrer Schicht. Sie kümmert sich liebend gerne um die Ponys und vor allem Versteifungen haben es ihr angetan.'; var Rarity_DE_Summary = 'Rarity ist eine talentierte Schneiderin in Ponyville. Sie träumt ständig von ihrem Prinz in strahlender Rüsstung doch da dieser noch auf sich warten lässt vergnügt sie sich derweilen mit anderen.'; var Coco_DE_Summary = 'Eine aufsteigende Modeschöpferin aus Manehatten die ständig bemüht ist Raritys hohen Erwartungen gerecht zu werden. Sie würde alles tun um sie zufrieden zu stellen.'; var Derpy_DE_Summary = 'Die Postbotin von Ponyville mag einen etwas verwirrten Eindruck machen, doch sie ist immer bemüht anderen zu helfen und sie glücklich zu machen.'; var Dust_DE_Summary = 'Lightning Dust hat viel gemeinsam mit Rainbow Dash. Sie teilen den gleichen Traum auch wenn sie unterschiedliche Vorstellungen davon haben wie sie diesen erreichen sollen. Eine sehr ehrgeizige Stute.'; var Pinkie_DE_Summary = 'Pinkie Pie arbeitet normalerweise in der örtlichen Bäckerei Shugarcube Corner. Zusätzlich ist sie die beste Party Planerin in ganz Ponyville, vielleicht sogar Equestria. Spaß ist ihr Lebensmotto und den meisten Spaß hat sie mit anderen im Bett.'; var Maud_DE_Summary = 'Pinkie Pies stoische ältere Schwester. Sie mag Steine. Das ist so ziemlich alles was es über sie zu sagen gibt.'; var Cheerilee_DE_Summary = 'Die Lehrerin Cheerilee verbringt den Tag damit den Fohlen stöndig neues beizubringen doch Abends hat sie auch für erwachsene Ponys noch den ein oder anderen Trick zu lernen parat.'; var Ember_DE_Summary = 'Ember ist eine Prinzessin aus den Drachenlanden. Tochter des Drachenlords und dank Spike auch dessen Nachfolgerin auf dem Thron. Sie ist höchst neugierig auf die Ponys die aus Spike einen so seltsamen Drachen gemacht hatten.'; var Zecora_DE_Summary = 'Zecora ist eine mysteriöse Zebrastute aus dem Everfree Wald. Seit sie von den Ponys in Ponyville akzeptiert und aufgenommen wurde ist sie stets bemüht diese freundlichen Beziehungen aufrecht zu halten. '; var Daring_Do_DE_Summary = 'Die Archeologin und Abenteurerin Daring Do ist immer für ein Abenteuer zu haben.'; var Velvet_DE_Summary = 'Mutter von Twilgiht Sparkle und Shining Armor. Trotz einer gesunden Ehe fühlt sie sich etwas unausgelastet in gewissen Punkten.'; var Octavia_DE_Summary = 'Octavia van Clef ist eine sehr talentierte Erdpony Stute die Chello spielt. Mit ihren geübten Hufen kann sie nicht nur ihr Instrument führen, sondern auch andere Ponys. In ihren Hufen wird jeder Hengst zu einem Instrument. '; var Vinyl_DE_Summary = 'Vinyl Scratch weitläufig bekannt unter ihrem Pseudonym DJ-PON3. Laute Musik, aggresive Lichter und ausschweifende Nächte sind ein Teil ihres Lebens. Ein Teil von dem sie nie genug bekommen kann.'; var Lyra_DE_Summary = 'Lyra hat eine seltsame Obsession für Fremdartige Wesen. Abgesehen von diesem Punkt ist sie eine sehr talentierte Lyra Spielerin.'; var Spa_DE_Summary = 'Die Zwillingsschwestern Lotus und Aloe sind bestens geschult wenn es um den Körper geht und wie man ihm größte Befriedigung verschafft. In ihrem Spa ist noch jeder mit einem Lächeln auf dem Gesicht gekommen und diese Strähne wollen sie weiter fortsetzten.'; var Nightmare_Rarity_DE_Summary = 'Selbst das Element der Großzügigkeit kann korrumpiert werden. In ihrer Alptraum Form ist sie zwar auf Rache aus, doch auch ihr eigenes Vergnügen soll nicht zu kurz kommen.'; var Gaby_DE_Summary = 'Eine junge, neugierige Botin der Greifen die immer auf der Suche nach neuen Kontakten ist.'; var Fleur_DE_Summary = 'Fleur ist eine hochgebohrene Stute aus Canterlot. Als Model hat sie es bis an die Spitze der Gesellschaft geschafft. Leider bietet ihre Arbeit und die ihres Ehehengstes wenig Zeit für gemeinsame Stunden.'; var Trixie_DE_Summary = 'Frühereinmal eine angeberische Schaustellerin, versucht sie nun ihr Image zu einem positiven zu verändern.'; var Sunset_DE_Summary = 'Frühere Schülerin von Prinzessin Celestia und für lange Zeit in eine fremde Dimension verbannt gewesen. Nun ist sie dabei alles aufzuholen was sie verpasst hat.'; var Starlight_DE_Summary = 'Starlight Glimmer war früher einmal die Anführerin ihres eigenen Dorfes voller gedankenloser Sklaven. Durch Twilight Sparkle hat sie gesehen das ihr Verhalten falsch war und ist nun dabei sich zu bessern.'; var Flutterbat_DE_Summary = 'Ein tragischer Magieunfall hat aus Fluttershy diese Bestie gemacht deren unstillbarer Hunger sich nicht mehr nur auf Äpfel bezieht.'; var Cadence_DE_Summary = 'Die Prinzessin der Liebe höchstselbst. Herrscherin des Kristallkönigreichs und bewahrerin des Kristallherzens.'; var Chrysalis_DE_Summary = 'Königin der changelinge. Nach ihrer gescheiterten Invasion hat sie erkannt dass sie noch viel über die Liebe von Ponys lernen muss. Am besten natürlich aus erster Hand.'; var Nightmare_DE_Summary = 'Die ewige Königin der Nacht und Todfeind der Sonne. Sie hat nur ein einziges erklärtes Ziel und das ist die ewige Nacht. Dieses Mal jedoch hat sie beschlossen den Ponys einfach zu zeigen was für Vorzüge die Nacht hat.'; var Luna_DE_Summary = 'Die Prinzessin der Nacht. Herrin des Mondes und Erschafferin der Sterne. Prinzessin Luna war eintausend Jahre lang auf den Mond verbannt und nun muss sie viel nachholen.'; var Celestia_DE_Summary = 'Die Prinzessin des Tages. Herrin der Sonne. Die ewig wachsame Herrscherin die aus Equestria ein Utopia für seine Bewohner gemacht hat. Sie ist stets bemüht ihre Ponys zu führen und glücklich zu machen auch wenn es auf dem Thron von Zeit zu Zeit sehr einsam werden kann'; var Moondancer_EN_Summary = 'Bücherwurm und Streberin. Sie war früher eine Klassenkameradin von Twilight Sparkle. Sie hat nie viele Freunde gefunden, dafür aber umso mehr Bücher. Sie hat eine Menge aufzuholen wenn es um soziale Interaktion geht. '; var Sassy_EN_Summary = 'Die ambitionierte Managerin von Raritys Boutique in Canterlot. Sie ist sehr zielstrebig und würde alles dafür tun um ihr Geschäft und sich selbst gut zu vermarkten.'; var Twilight = {'Name': 'Twilight Sparkle', 'Age': 20, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 20, 'Skill': 5, 'Attraction': 10, 'Cost': 10, 'Base_Cost': 5, 'Rank': 0, 'Price': 80, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Fluttershy', 'Starlight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Twilight_AN = {'Name': 'Twilight Sparkle (A)', 'Age': 20, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 20, 'Skill': 5, 'Attraction': 10, 'Cost': 10, 'Base_Cost': 5, 'Rank': 0, 'Price': 80.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Sunset_AN', 'Rarity_AN', 'Spa_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Twilight_HU = {'Name': 'Twilight Sparkle (H)', 'Age': 20, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 20, 'Skill': 5, 'Attraction': 10, 'Cost': 10, 'Base_Cost': 5, 'Rank': 0, 'Price': 80.00002000000001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Fluttershy = {'Name': 'Fluttershy', 'Age': 22, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 100, 'Endurance': 10, 'Charisma': 30, 'Skill': 5, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 100, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight', 'Rainbow', 'Coco'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Fluttershy_AN = {'Name': 'Fluttershy (A)', 'Age': 22, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 100, 'Endurance': 10, 'Charisma': 30, 'Skill': 5, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 100.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight_AN', 'Rainbow_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Fluttershy_HU = {'Name': 'Fluttershy (H)', 'Age': 22, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 100, 'Endurance': 10, 'Charisma': 30, 'Skill': 5, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 100.00002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Rainbow_HU', 'Applejack_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Bonbon = {'Name': 'Bonbon', 'Age': 19, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 15, 'Skill': 15, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 120, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Lyra'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Bonbon_AN = {'Name': 'Bonbon (A)', 'Age': 19, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 15, 'Skill': 15, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 120.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Lyra_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rainbow = {'Name': 'Rainbow Dash', 'Age': 19, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 25, 'Charisma': 5, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 160, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Gilda', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rainbow_AN = {'Name': 'Rainbow Dash (A)', 'Age': 19, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 25, 'Charisma': 5, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 160.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Redheart_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rainbow_HU = {'Name': 'Rainbow Dash (H)', 'Age': 19, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 25, 'Charisma': 5, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 160.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Pinkie_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Gilda = {'Name': 'Gilda', 'Age': 19, 'Race': 'Griffon', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 15, 'Health': 100, 'Obediance': 80, 'Endurance': 25, 'Charisma': 15, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 5, 'Rank': 1, 'Price': 200, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Pinkie', 'Rarity', 'Ember'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Applejack = {'Name': 'Applejack', 'Age': 18, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 40, 'Charisma': 20, 'Skill': 35, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 10, 'Rank': 1, 'Price': 250, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Rainbow', 'Luna'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Applejack_AN = {'Name': 'Applejack (A)', 'Age': 18, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 40, 'Charisma': 20, 'Skill': 35, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 10, 'Rank': 1, 'Price': 250.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna_AN', 'Celestia_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Applejack_HU = {'Name': 'Applejack (H)', 'Age': 18, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 10, 'Health': 100, 'Obediance': 85, 'Endurance': 40, 'Charisma': 20, 'Skill': 35, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 10, 'Rank': 1, 'Price': 250.00002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Rarity'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Redheart = {'Name': 'Nurse Redheart', 'Age': 23, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 95, 'Endurance': 20, 'Charisma': 20, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 320, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Redheart_AN = {'Name': 'Nurse Redheart (A)', 'Age': 23, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 95, 'Endurance': 20, 'Charisma': 20, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 320.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rarity = {'Name': 'Rarity', 'Age': 23, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 95, 'Endurance': 10, 'Charisma': 40, 'Skill': 20, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna', 'Applejack', 'Fluttershy'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rarity_AN = {'Name': 'Rarity (A)', 'Age': 23, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 95, 'Endurance': 10, 'Charisma': 40, 'Skill': 20, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Spa_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Rarity_HU = {'Name': 'Rarity (H)', 'Age': 23, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 95, 'Endurance': 10, 'Charisma': 40, 'Skill': 20, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Twilight_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Coco = {'Name': 'Coco Pommel', 'Age': 23, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 95, 'Endurance': 10, 'Charisma': 40, 'Skill': 25, 'Attraction': 20, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Rarity'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Derpy = {'Name': 'Derpy Hooves', 'Age': 23, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 100, 'Endurance': 40, 'Charisma': 30, 'Skill': 15, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400.004, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Derpy_AN = {'Name': 'Derpy Hooves (A)', 'Age': 23, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 100, 'Endurance': 40, 'Charisma': 30, 'Skill': 15, 'Attraction': 15, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 400.005, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Fluttershy_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Dust_AN = {'Name': 'Lightning Dust (A)', 'Age': 20, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 25, 'Charisma': 30, 'Skill': 35, 'Attraction': 35, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 500, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Gilda'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Pinkie = {'Name': 'Pinkie Pie', 'Age': 20, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 40, 'Skill': 40, 'Attraction': 40, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 600, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Cadence', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Pinkie_AN = {'Name': 'Pinkie Pie (A)', 'Age': 20, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 40, 'Skill': 40, 'Attraction': 40, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 600.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Spa_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Pinkie_HU = {'Name': 'Pinkie Pie (H)', 'Age': 20, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 95, 'Endurance': 15, 'Charisma': 40, 'Skill': 40, 'Attraction': 40, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 600.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Rainbow_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Maud = {'Name': 'Maud Pie', 'Age': 25, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 20, 'Health': 100, 'Obediance': 100, 'Endurance': 80, 'Charisma': 0, 'Skill': 25, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 600.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Moondancer = {'Name': 'Moondancer', 'Age': 20, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Canterlot', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 95, 'Endurance': 30, 'Charisma': 30, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 900.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Moondancer_AN = {'Name': 'Moondancer (A)', 'Age': 20, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Canterlot', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 95, 'Endurance': 30, 'Charisma': 30, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 900.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna_AN', 'Twilight_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Cheerilee = {'Name': 'Cheerilee', 'Age': 28, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 100, 'Endurance': 20, 'Charisma': 25, 'Skill': 35, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 900, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Applejack'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Ember = {'Name': 'Ember', 'Age': 28, 'Race': 'Dragon', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 85, 'Endurance': 45, 'Charisma': 30, 'Skill': 25, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 15, 'Rank': 1, 'Price': 900.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Zecora = {'Name': 'Zecora', 'Age': 26, 'Race': 'Zebra', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 45, 'Health': 100, 'Obediance': 95, 'Endurance': 40, 'Charisma': 30, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 20, 'Rank': 1, 'Price': 1200, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Daring_Do = {'Name': 'Daring Do', 'Age': 25, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 85, 'Endurance': 70, 'Charisma': 35, 'Skill': 35, 'Attraction': 5, 'Cost': 10, 'Base_Cost': 20, 'Rank': 1, 'Price': 1200.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Daring_Do_AN = {'Name': 'Daring Do (A)', 'Age': 25, 'Race': 'Pegasus', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 85, 'Endurance': 70, 'Charisma': 35, 'Skill': 35, 'Attraction': 5, 'Cost': 10, 'Base_Cost': 20, 'Rank': 1, 'Price': 1200.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Rainbow_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Velvet_AN = {'Name': 'Twilight Velvet (A)', 'Age': 42, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Canterlot', 'Unlocked': true, 'Worth': 35, 'Health': 100, 'Obediance': 95, 'Endurance': 35, 'Charisma': 35, 'Skill': 35, 'Attraction': 35, 'Cost': 10, 'Base_Cost': 20, 'Rank': 1, 'Price': 1200.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Twilight_AN', 'Cadence_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Octavia = {'Name': 'Octavia', 'Age': 25, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 60, 'Health': 100, 'Obediance': 85, 'Endurance': 20, 'Charisma': 60, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Vinyl'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Octavia_AN = {'Name': 'Octavia (A)', 'Age': 25, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 60, 'Health': 100, 'Obediance': 85, 'Endurance': 20, 'Charisma': 60, 'Skill': 30, 'Attraction': 30, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Vinyl_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Vinyl = {'Name': 'Vinyl Scratch', 'Age': 22, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 90, 'Endurance': 60, 'Charisma': 35, 'Skill': 35, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Vinyl_AN = {'Name': 'Vinyl Scratch (A)', 'Age': 22, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 40, 'Health': 100, 'Obediance': 90, 'Endurance': 60, 'Charisma': 35, 'Skill': 35, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Lyra = {'Name': 'Lyra Heartstrings', 'Age': 24, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 80, 'Endurance': 40, 'Charisma': 80, 'Skill': 30, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000.004, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Applejack'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Lyra_AN = {'Name': 'Lyra Heartstrings (A)', 'Age': 24, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 30, 'Health': 100, 'Obediance': 80, 'Endurance': 40, 'Charisma': 80, 'Skill': 30, 'Attraction': 25, 'Cost': 10, 'Base_Cost': 30, 'Rank': 1, 'Price': 2000.005, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Spa = {'Name': 'Lotus & Aloe', 'Age': 19, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 85, 'Endurance': 35, 'Charisma': 40, 'Skill': 50, 'Attraction': 50, 'Cost': 10, 'Base_Cost': 40, 'Rank': 1, 'Price': 3000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Applejack', 'Fluttershy', 'Rarity'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Spa_AN = {'Name': 'Lotus & Aloe (A)', 'Age': 19, 'Race': 'Earth-Pony', 'Obtained': false, 'Loctaion': 'Ponyville', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 85, 'Endurance': 35, 'Charisma': 40, 'Skill': 50, 'Attraction': 50, 'Cost': 10, 'Base_Cost': 40, 'Rank': 1, 'Price': 3000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Nightmare_Rarity = {'Name': 'Nightmare Rarity', 'Age': 23, 'Race': 'Alicorn', 'Obtained': false, 'Loctaion': 'Prison', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 90, 'Endurance': 30, 'Charisma': 40, 'Skill': 55, 'Attraction': 55, 'Cost': 10, 'Base_Cost': 45, 'Rank': 1, 'Price': 3500, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Nightmare_Rarity_AN = {'Name': 'Nightmare Rarity (A)', 'Age': 23, 'Race': 'Alicorn', 'Obtained': false, 'Loctaion': 'Prison', 'Unlocked': true, 'Worth': 50, 'Health': 100, 'Obediance': 90, 'Endurance': 30, 'Charisma': 40, 'Skill': 55, 'Attraction': 55, 'Cost': 10, 'Base_Cost': 45, 'Rank': 1, 'Price': 3500.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Nightmare_AN', 'Rarity_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Gaby = {'Name': 'Gabby', 'Age': 18, 'Race': 'Griffon', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 60, 'Health': 100, 'Obediance': 90, 'Endurance': 25, 'Charisma': 60, 'Skill': 45, 'Attraction': 50, 'Cost': 10, 'Base_Cost': 50, 'Rank': 1, 'Price': 5000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Fleur = {'Name': 'Fleur des lis', 'Age': 23, 'Race': 'Unicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': true, 'Exp': 0, 'Worth': 75, 'Health': 100, 'Obediance': 90, 'Endurance': 10, 'Charisma': 50, 'Skill': 45, 'Attraction': 60, 'Cost': 10, 'Base_Cost': 50, 'Rank': 1, 'Price': 5000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Rarity'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Fleur_AN = {'Name': 'Fleur des lis (A)', 'Age': 23, 'Race': 'Unicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': true, 'Exp': 0, 'Worth': 75, 'Health': 100, 'Obediance': 90, 'Endurance': 10, 'Charisma': 50, 'Skill': 45, 'Attraction': 60, 'Cost': 10, 'Base_Cost': 50, 'Rank': 1, 'Price': 5000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Rarity_AN', 'Sassy_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Trixie = {'Name': 'Trixie Lulamoon', 'Age': 22, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 65, 'Health': 100, 'Obediance': 90, 'Endurance': 35, 'Charisma': 40, 'Skill': 40, 'Attraction': 70, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 6000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight', 'Nightmare'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Trixie_AN = {'Name': 'Trixie Lulamoon (A)', 'Age': 22, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Outskirt', 'Unlocked': true, 'Worth': 65, 'Health': 100, 'Obediance': 90, 'Endurance': 35, 'Charisma': 40, 'Skill': 40, 'Attraction': 70, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 6000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight_AN', 'Cadence_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Sunset_AN = {'Name': 'Sunset Shimmer (A)', 'Age': 25, 'Race': 'Unicorn', 'Obtained': false, 'Loctaion': 'Canterlot', 'Unlocked': true, 'Worth': 65, 'Health': 100, 'Obediance': 95, 'Endurance': 40, 'Charisma': 45, 'Skill': 55, 'Attraction': 40, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 6000.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Pinkie_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Starlight = {'Name': 'Starlight Glimmer', 'Age': 26, 'Race': 'Unicorn', 'Obtained': false, 'Location': 'Ponyville', 'Unlocked': true, 'Exp': 0, 'Worth': 65, 'Health': 100, 'Obediance': 90, 'Endurance': 35, 'Charisma': 40, 'Skill': 70, 'Attraction': 40, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 6000.003, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Twilight', 'Trixie'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Flutterbat = {'Name': 'Flutterbat', 'Age': 23, 'Race': 'Batpony', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 80, 'Health': 100, 'Obediance': 55, 'Endurance': 80, 'Charisma': 50, 'Skill': 45, 'Attraction': 5, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 7500, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Applejack', 'Rainbow'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Flutterbat_AN = {'Name': 'Flutterbat (A)', 'Age': 23, 'Race': 'Batpony', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 80, 'Health': 100, 'Obediance': 55, 'Endurance': 80, 'Charisma': 50, 'Skill': 45, 'Attraction': 5, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 7500.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Applejack_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Coloratura = {'Name': 'Coloratura', 'Age': 22, 'Race': 'Earth-Pony', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': true, 'Exp': 0, 'Worth': 70, 'Health': 100, 'Obediance': 95, 'Endurance': 50, 'Charisma': 40, 'Skill': 45, 'Attraction': 45, 'Cost': 10, 'Base_Cost': 80, 'Rank': 1, 'Price': 7500.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Sassy = {'Name': 'Sassy Saddle', 'Age': 26, 'Race': 'Unicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': true, 'Exp': 0, 'Worth': 60, 'Health': 100, 'Obediance': 95, 'Endurance': 60, 'Charisma': 60, 'Skill': 60, 'Attraction': 60, 'Cost': 10, 'Base_Cost': 80, 'Rank': 1, 'Price': 8000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Sassy_AN = {'Name': 'Sassy Saddle (A)', 'Age': 26, 'Race': 'Unicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': true, 'Exp': 0, 'Worth': 60, 'Health': 100, 'Obediance': 95, 'Endurance': 60, 'Charisma': 60, 'Skill': 60, 'Attraction': 60, 'Cost': 10, 'Base_Cost': 80, 'Rank': 1, 'Price': 8000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Fleur_AN', 'Rarity_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Cadence = {'Name': 'Princess Cadence', 'Age': 32, 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 66, 'Health': 100, 'Obediance': 95, 'Endurance': 66, 'Charisma': 66, 'Skill': 66, 'Attraction': 66, 'Cost': 10, 'Base_Cost': 100, 'Rank': 1, 'Price': 10000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Chrysalis'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Cadence_AN = {'Name': 'Princess Cadence (A)', 'Age': 32, 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 66, 'Health': 100, 'Obediance': 95, 'Endurance': 66, 'Charisma': 66, 'Skill': 66, 'Attraction': 66, 'Cost': 10, 'Base_Cost': 100, 'Rank': 1, 'Price': 10000.0001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Chrysalis_AN', 'Luna_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Chrysalis = {'Name': 'Chrysalis', 'Age': '??', 'Race': 'Changeling', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 30, 'Health': 100, 'Obediance': 80, 'Endurance': 60, 'Charisma': 30, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 25000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Celestia', 'Cadence'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Chrysalis_AN = {'Name': 'Chrysalis (A)', 'Age': '??', 'Race': 'Changeling', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 30, 'Health': 100, 'Obediance': 80, 'Endurance': 60, 'Charisma': 30, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 25000.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Cadence_AN', 'Nightmare_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Chrysalis_HU = {'Name': 'Chrysalis (H)', 'Age': '??', 'Race': 'Changeling', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 30, 'Health': 100, 'Obediance': 80, 'Endurance': 60, 'Charisma': 30, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 60, 'Rank': 1, 'Price': 25000.00002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': [], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Nightmare = {'Name': 'Nightmare Moon', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 100, 'Health': 100, 'Obediance': 0, 'Endurance': 100, 'Charisma': 100, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 600, 'Rank': 1, 'Price': 50000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna', 'Chrysalis'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Nightmare_AN = {'Name': 'Nightmare Moon (A)', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Prison', 'Unlocked': true, 'Exp': 0, 'Worth': 100, 'Health': 100, 'Obediance': 0, 'Endurance': 100, 'Charisma': 100, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 600, 'Rank': 1, 'Price': 50000.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna_AN', 'Chrysalis_AN', 'Celestia_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Luna = {'Name': 'Princess Luna', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Unlocked': false, 'Exp': 0, 'Worth': 100, 'Health': 100, 'Obediance': 100, 'Endurance': 100, 'Charisma': 100, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 200, 'Rank': 1, 'Price': 100000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Twilight', 'Celestia'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Luna_AN = {'Name': 'Princess Luna (A)', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 100, 'Health': 100, 'Obediance': 100, 'Endurance': 100, 'Charisma': 100, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 200, 'Rank': 1, 'Price': 100000.00001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Applejack_AN', 'Celestia_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Luna_HU = {'Name': 'Princess Luna (H)', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 100, 'Health': 100, 'Obediance': 100, 'Endurance': 100, 'Charisma': 100, 'Skill': 100, 'Attraction': 100, 'Cost': 10, 'Base_Cost': 200, 'Rank': 1, 'Price': 100000.00002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Celestia_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Celestia = {'Name': 'Princess Celestia', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 200, 'Health': 100, 'Obediance': 100, 'Endurance': 200, 'Charisma': 200, 'Skill': 200, 'Attraction': 200, 'Cost': 10, 'Base_Cost': 1, 'Rank': 1, 'Price': 200000, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Spa', 'Luna', 'Twilight'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Celestia_AN = {'Name': 'Princess Celestia (A)', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 200, 'Health': 100, 'Obediance': 100, 'Endurance': 200, 'Charisma': 200, 'Skill': 200, 'Attraction': 200, 'Cost': 10, 'Base_Cost': 1, 'Rank': 1, 'Price': 200000.001, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Tentakel', 'Luna_AN'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Celestia_HU = {'Name': 'Princess Celestia (H)', 'Age': '??', 'Race': 'Alicorn', 'Obtained': false, 'Location': 'Canterlot', 'Unlocked': false, 'Exp': 0, 'Worth': 200, 'Health': 100, 'Obediance': 100, 'Endurance': 200, 'Charisma': 200, 'Skill': 200, 'Attraction': 200, 'Cost': 10, 'Base_Cost': 1, 'Rank': 1, 'Price': 200000.002, 'Summary': '', 'Exp': 0, 'Work': false, 'Special': ['Luna_HU'], 'Special_Number': 99, 'Sick': 0, 'Bits_Earned': 0, 'Total_Cost': 0, 'Day_Bought': 0, 'Days_Sick': 0, 'Times_Refused': 0, 'Days_Break': 0}; var Helptext_EN = '<h1><b><u>Help:</u></b>\r\r<b>Explanation of Stats:</b> \r\r<u>Health:</u> For every customer your mares lose some of their health. When their health is at 0 they get sick. Give them a day off once in a while so they can recover.\r<u>Worth:</u> The higher the worth of a mare, the more bits you can earn from every customer she serves. \r<u>Obediance:</u> The more obediant your mares are, the less likley they are to refuse to service a customer. \r<u>Experience:</u> You can use the Experience of a mare to raise her other stats.\r<u>Endurance:</u> The higher her Endurance, the less Health they will lose every night.\r<u>Attraction:</u> This value decides how many customers a mare can attract in a single night.\r<u>Skill:</u> Deems how many customers she can work with every night.\r<u>Charisma:</u> Has a positive effect on the money your mare can earn every night.\r\r<u>Rank:</u> Rank determines the overall stats of your mare. It can be raised by promoting the various stats of your mare. once you promoted them enough, her rank will increase on its own.\r\r<b>House:</b>\rFor every mare you want to work for you, you have to provide a room in your house. You can buy additional rooms but they get more expensive with every new one you buy.\r<u>House Upgrades:</u> \rYou can hire some preffesionals to upgrade your buisness. You can find a detailed helptext for them when you click the help button at the \'House\' section.\r\r<u>Objectives:</u> \rFinish the objective within the time limit to gain special points. Special points are needed to unlock special mares in the market. They will be unlocked automatically according to the number of your SP. Every time you fail an objective the difficulty of the game will be decreased. From high to medium to easy. Once you fail an easy objective its game over. You get 3 special points for high, 2 for medium and one for succesfully completed objective.</h1>'; var Helptext_DE = '<h1><b><u>Hilfe:</u></b>\r\r<b>Erklärung der Stutenwerte:</b> \r\r<u>Gesundheit:</u> Deine Stuten verlieren für jeden Kunden den sie bedienen etwas Gesundheit. Wenn ihre Gesundheit 0 erreicht werden sie krank und müssen sich einige Tage ausruhen. Gönn ihnen hin und wieder eine Pause so dass sie sich erholen können.\r<u>Wert:</u> Dieser Wert gibt an wie viel ein Kunde für eine Nacht mit deiner Stute zahlen muss. \r<u>Gehorsam:</u> Je gehorsamer deine Stuten sind, desto geringer ist die Chance, dass sie sich weigern zu arbeiten. \r<u>Erfahrung:</u> Mit ihrer gewonnen Erfahrung können die Werte einer Stute aufgewertet werden.\r<u>Ausdauer:</u> Die Ausdauer gibt an wie viel Gesundheit sie pro Nacht verlieren wenn sie arbeiten.\r<u>Aussehen:</u> Gibt an wie viele Kunden eine Stute pro Nacht anlocken kann.\r<u>Technik:</u> Bestimmt mit wie vielen Kunden eine Stute pro Nacht arbeiten kann.\r<u>Charisma:</u> Beeinflusst den Preis den die Kunden bereit sind für deine Stuten zu zahlen.\r\r<u>Rang:</u> Gibt Auskunft über den Gesamtwert deiner Stute. Er kann durch erhöhung ihrer Statuswerte erhöht werden. Sobald deine Stute oft genug befördert wurde, erhöht sich ihr Rang automatisch.\r\r<b>Haus:</b>\rJede Stute die für dich arbeitet braucht ein eigenes Zimmer in deinem Haus. Du kannst zusätzliche Zimmer für dein Haus kaufen, diese werden aber mit zunehmender Zahl immer teurer.\r<u>Hausverbesserungen:</u> \rDu kannst dein Haus mittels einige Dinge verbessern. Eine genaue Erklärung dazu findest du im Hilfetext im Menü \'Haus\'.\r\r<u>Aufgaben:</u> \rDurch Aufgaben verdienst du Spezialpunkte mit denen die gesperrten Stuten im Markt freigeschaltet werden. du hast insgesamt 3 Chancen. Nach jeder gescheiterten Aufgabe wird der Schwierigkeitsgrad des Spiels herabgestuft. Von Hoch auf Mittel, von Mittel auf Leicht. Wenn du beim Schwierigkeitsgrad Leicht wieder scheiterterst, ist das Spiel vorbei. Du bekommst für Hoch drei Spezialpunkte, für Mittel 2 und für Leicht einen pro abgeschlossener Aufgabe. </h1>'; var Helptext_House_EN = '<h1><b><u>Help:</u></b>\r\r<u>Buy Room:</u>\rYou can buy additional Rooms for your buisness. Each new room will be more expansive than the last one. Every mare working for you needs a free room to work.\r<u>Buy Nurse:</u>\rFor ' + House.Nurse_Price + ' Bits you can hire a nurse to look after your girls. The nurse will need one free ' + 'room to work in. Once you hired her, you can assign her to a room to take care of your mares. She will charge ' + 'you for every night she is on duty and depending on your total income of that night. When you haven\'t assigned ' + 'her to a room, she won\'t charge you. \r' + '<u>Buy Mistress:</u>\r' + 'For ' + House.Mistress_Price + ' Bits you can hire a mistress to train your mares obediance. The mistress will need one ' + 'free room to work in. Once you hired her, you can assign her to a room to train your mares. She will charge ' + 'you 100 Bits per mare for every night she is on duty. When you haven\'t assigned her to a room, she won\'t ' + 'charge you. \r' + '<u>Buy Teacher:</u>\r' + 'For ' + House.Teacher_Price + ' Bits you can hire a teacher to increase the Exp your mares gain for ' + 'working. The teacher will need one free room to work in. Once you hired him, you can assign him to a room to ' + 'teach your girls. He will charge you for every night he is on duty and depending on your total income of ' + 'that night. When you haven\'t assigned him to a room, he won\'t charge you. \r' + '<u>Buy Doctor:</u>\r' + 'For ' + House.Doctor_Price + ' Bits you can hire a Doctor to always keep your mares at full health. ' + 'The Doctor will need one free room to work in. Once you hired him, you can assign him to a room to ' + 'look after your girls. He will charge you for every night he is on duty and depending on your total income of ' + 'that night. When you haven\'t assigned him to a room, he won\'t charge you. \r' + '</h1>'; var Helptext_House_DE = '<h1><b><u>Hilfe:</u></b>\r\r<u>Raum kaufen:</u>\rDu kannst zusätzliche Räume für dein Geschäft kaufen. Je mehr Räume du bereits hast, desto teurer werden neue Räume.\r<u>Krankenschwester:</u>\rFür ' + House.Nurse_Price + ' Bits kannst du eine Krankenschwester anheuern. Die Schwester benötigt einen freien Raum ' + 'in dem sie arbeiten kann. Sobald sie in einem Raum arbeitet wird sie sich um die Gesundheit deiner Stuten kümmern. ' + 'Sie wird dir eine Rechnung abhänging von ihrem Arbeitsaufwand am Ende jeder Nacht stellen. Wenn sie in keinem Raum ' + 'Raum eingesetzt ist, musst du ihr nichts bezahlen.\r' + '<u>Domina kaufen:</u>\r' + 'Für ' + House.Mistress_Price + ' Bits kannst du eine Domina einstellen die deinen Stuten Gehorsam beibringen wird. ' + 'Die Domina benötigt einen freien Raum in dem sie arbeiten kann. Sobald du sie eingestellt hast wird sie den Gehorsam ' + 'deiner Stuten jede Nacht verbessern. Sie verlangt dazu am Ende jeder Nacht 100 Bits pro Stute mit der sie gerarbeitet hat. ' + 'Wenn sie in keinem Raum Raum eingesetzt ist, musst du ihr nichts bezahlen.\r' + '<u>Lehrer kaufen:</u>\r' + 'Für ' + House.Teacher_Price + ' Bits kannst du einen Lehrer anheuern der die gewonnene Erfahrung deiner Stuten jede Nacht ' + 'verbessert. Der Lehrer braucht einen freien Raum in dem er arbeiten kann. Wenn du ihn eingestellt hast, wird er dafür sorgen ' + 'dass deine Stuten jede Nacht mehr Erfahrung gewinnen. Wenn er keinem Raum zugeteilt ist, dann verlangt er kein Geld. Er wird ' + 'dir jede Nacht eine Rechnung abhängig von deinem Einkommen stellen. \r' + '<u>Buy Doctor:</u>\r' + 'Für ' + House.Doctor_Price + ' Bits kannst du einen Doktor einstellen der sich um deine Stuten kümmert. ' + 'Der Doktor braucht einen freien Raum in dem er arbeiten kann. Wenn du ihn eingestellt hast, wird er dafür sorgen ' + 'dass deine Stuten jede Nacht ein wenig Gesundheit zurück gewinnen. Wenn er keinem Raum zugeteilt ist wird, dann verlangt ' + 'er kein Geld von dir. Er wird dir jede Nacht in der er arbeitet eine Rechnung abhängig von deinem Einkommen stellen.\r' + '</h1>'; var Intro_Text_EN = '<h1>\r\rAfter a long Journey you are finally able to set up your own Brothel in Ponyville. With your savings you managed to buy a small house and set up your buisness. Your limited funds didn\'t allow too much fancy stuff but you can always fix that once your buisness is running. First thing you need is a mare willing to work for you. You should check the local market if anyone is interessted in a little side job.</h1>'; var Intro_Text_DE = '<h1>\r\rNach einer langen Reise kannst du nun endlich dein Bordell in Ponyville eröffnen. Mit deinen Ersparnissen und einem Kredit deiner Bank kannst du dir ein kleines Haus kaufen. Das Haus ist nichts besonderes doch für den Anfang sollte es reichen und du kannst es später immer noch ausbauen wenn der Laden erst einmal läuft. Fürs erste benötigst du nun eine Stute die bereit ist für dich zu arbeiten. Du solltest die Stellenanzeigen ansehen ob es nicht vielleicht eine Stute gibt die sich ein kleines bisschen dazu verdienen möchte.</h1>'; var Office_Helptext_EN = '<h1>\r<b><u>Help: Office</u></b>\r\r<u>Upgrade Office:</u>\rYou can Upgrade your office up to 3 times. Each upgrade will show you more mares in the office view. On its max level you will be able to manage 12 mares on each office page. Prices: \rFirst Upgrade: ' + Office.Upgrade_Price[1] + ' Bits.\r' + 'Second Upgrade: ' + Office.Upgrade_Price[2] + ' Bits.\r' + 'Third Upgrade: ' + Office.Upgrade_Price[3] + ' Bits.\r\r' + '<u>Buy Gallery:</u>\r\r' + 'For ' + Office.Gallery_Price + ' Bits you can add the Gallery to your office. Once its purchased, it will allow you to ' + 'browse through the artworks of every Mare. Even those currently not bought by you.\r\r' + '<u>Buy Statistics:</u>\r\r' + 'For ' + Office.Statistics_Price + ' Bits you can add the statistics tab to your office. Once its purchased, it will allow you to ' + 'to see some more detailed informations and statistics for every mare.\r\r'; var Office_Helptext_DE = '<h1>\r<b><u>Hilfe: Büro</u></b>\r\r<u>Büro upgrade:</u>\rDu kannst dein Büro drei mal verbessern. Jedes Upgrade zeigt dir mehr Stuten auf jeder Büroseite an. Auf dem höchsten Level kannst du 12 Stuten pro Seite verwalten. Preise: \rErste Verbesserung: ' + Office.Upgrade_Price[1] + ' Bits.\r' + 'Zweite Verbesserung: ' + Office.Upgrade_Price[2] + ' Bits.\r' + 'Dritte Verbesserung: ' + Office.Upgrade_Price[3] + ' Bits.\r\r' + '<u>Gallerie:</u>\r\r' + 'Für ' + Office.Gallery_Price + ' Bits kannst du eine Gallerie zu deinem Büro hinzufügen. Einmal gekauft erlaubt sie dir alle Artworks ' + 'von allen Stuten durchzublättern. Unabhängig davon ob die Stute für dich arbeitet oder nicht.\r\r' + '<u>Buy Statistics:</u>\r\r' + 'Für ' + Office.Statistics_Price + ' Bits kannst du die Statistiken zu deinem Büro hinzufügen. Einmal gekauft kannst ' + 'du dir detailierte Statistiken zu deinen Stuten ansehen.\r\r'; var styles = new TextField.StyleSheet(); var Stat_style = new TextField.StyleSheet(); styles.setStyle('p', {'fontFamily': 'Courier', 'fontSize': '15px'}); styles.setStyle('h1', {'fontSize': '15px'}); styles.setStyle('h2', {'fontSize': '12px', 'textAlign': 'justify'}); styles.setStyle('h3', {'fontSize': '15px', 'textAlign': 'justify', 'wordWrap': 'true'}); styles.setStyle('h4', {'fontSize': '11px', 'textAlign': 'justify', 'wordWrap': 'true'}); Stat_style.setStyle('p', {'fontSize': '15px', 'textAlign': 'justify'}); Stat_style.setStyle('h1', {'fontSize': '15px'}); Stat_style.setStyle('h2', {'fontSize': '12px'}); Stat_style.setStyle('h3', {'fontSize': '15px'}); Stat_style.setStyle('h4', {'fontSize': '15px', 'fontFamily': 'Courier', 'textAlign': 'justify'}); var Twilight_NSFW_1 = {'Unlocked': false, 'Name': 'Twilight_NSFW_1', 'Artist': 'ratofdrawn', 'Link': 'http://ratofponi.tumblr.com/post/147412590590/high-res-here-random-anonymously-stallion-having'}; var Twilight_NSFW_2 = {'Unlocked': false, 'Name': 'Twilight_NSFW_2', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/144715619415/shh-full'}; var Twilight_NSFW_3 = {'Unlocked': false, 'Name': 'Twilight_NSFW_3', 'Artist': 'mricantdraw', 'Link': 'http://itsmricantdraw.tumblr.com/post/137825275593/face-and-jizz-practice-it-may-be-a-bit-too'}; var Twilight_NSFW_Fluttershy = {'Unlocked': false, 'Artist': 'twiren', 'Link': 'http://twiren.tumblr.com/post/149483726871/another-beautiful-ship-today-fluttershy-decided'}; var Twilight_NSFW_Starlight = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/144350769575/lick-it-full'}; var Twilight_NSFW_Sunset = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/82836449389'}; var Twilight_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Slugbox', 'Link': 'https://e621.net/post/show/174005'}; var Twilight_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/147459176415/twilight-is-bae-forgot-to-finish-this-a-while'}; var Twilight_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'Dark Hazard', 'Link': 'https://inkbunny.net/submissionview.php?id=1149028'}; var Twilight_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/149568669295/twily-twaaaaa-full'}; var Twilight_AN_NSFW_Spa_AN = {'Unlocked': false, 'Artist': 'Darkhazard', 'Link': 'https://inkbunny.net/submissionview.php?id=832519'}; var Twilight_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Telltale-sherrif', 'Link': 'hhttp://www.furaffinity.net/view/18707347/'}; var Twilight_AN_NSFW_Sunset_AN = {'Unlocked': false, 'Artist': 'Audrarius', 'Link': 'http://audraria.tumblr.com/post/129198616837/more-commission-for-irishtiger21-this-was-actually'}; var Twilight_AN_NSFW_Rarity_AN = {'Unlocked': false, 'Artist': 'auto', 'Link': 'https://inkbunny.net/submissionview.php?id=956501&latest'}; var Twilight_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Twilight_HU_NSFW_1', 'Artist': 'audrarius', 'Link': 'http://audraria.tumblr.com/post/151006124482'}; var Twilight_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Twilight_HU_NSFW_2', 'Artist': 'audrarius', 'Link': 'http://audraria.tumblr.com/post/151006124482'}; var Twilight_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Twilight_HU_NSFW_3', 'Artist': 'cogbrony', 'Link': 'http://danandcogcorner.tumblr.com/post/143464492446/twi-job-i-am-quite-pleased-with-the-result-for'}; var Twilight_HU_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Twilight_HU_NSFW_Tentakel', 'Artist': 'loyproject', 'Link': 'http://loyprojecterotics.tumblr.com/post/137853325374/looks-like-twi-got-herself-into-some-tentacle'}; var Fluttershy_NSFW_1 = {'Unlocked': false, 'Name': 'Fluttershy_NSFW_1', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/144568732995/oops-full'}; var Fluttershy_NSFW_2 = {'Unlocked': false, 'Artist': 'mrfatcakes', 'Link': 'http://mrfatcakes.tumblr.com/post/73928986626'}; var Fluttershy_NSFW_3 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/125018377534/commission-for-shutterflyeqd-deviantart-vo'}; var Fluttershy_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'NsfwBonbon', 'Link': 'http://nsfw-bonbonpony.tumblr.com/post/140851662197/been-extremely-tired-and-sick-for-the-past-few'}; var Fluttershy_NSFW_Coco = {'Unlocked': false, 'Artist': 'Mrfatcakes', 'Link': 'http://mrfatcakes.tumblr.com/post/73978273744'}; var Fluttershy_NSFW_Twilight = {'Unlocked': false, 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=623737'}; var Fluttershy_NSFW_Rainbow = {'Unlocked': false, 'Artist': '68', 'Link': 'https://e621.net/post/show/391842'}; var Fluttershy_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_1', 'Artist': 'Atryl', 'Link': 'http://atrylplus.tumblr.com/post/68320068914/last-drops-so-heres-one-of-the-pictures-i-took'}; var Fluttershy_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_2', 'Artist': 'burgerkiss', 'Link': 'http://burgerkiss.tumblr.com/post/137890187150/creamshy-well-i-try-to-used-clip-studio-paint-for'}; var Fluttershy_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_3', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/149286188230/deep-and-warm-full'}; var Fluttershy_AN_NSFW_Rainbow_AN = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_Rainbow_AN', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/151065903160/load-her-up-with-your-cum-full'}; var Fluttershy_AN_NSFW_Twilight_AN = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_Twilight_AN', 'Artist': 'Darkhazard', 'Link': 'https://inkbunny.net/submissionview.php?id=1206726#pictop'}; var Fluttershy_AN_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Fluttershy_AN_NSFW_Tentakel', 'Artist': 'silverfox057', 'Link': 'https://inkbunny.net/submissionview.php?id=858967'}; var Fluttershy_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_1', 'Artist': 'freedomthai', 'Link': 'http://www.furaffinity.net/view/10680393/'}; var Fluttershy_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_2', 'Artist': 'megasweet', 'Link': 'https://www.derpibooru.org/344806?scope=scpee9b90e1e7bb18df1a4ef324ac608b76e8edec371'}; var Fluttershy_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_3', 'Artist': 'pornomagnum', 'Link': 'http://magsama.tumblr.com/post/129812987586/commission-from-dicknation-of-coy-getting-a'}; var Fluttershy_HU_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_Tentakel', 'Artist': 'tentank', 'Link': 'http://www.hentai-foundry.com/pictures/user/tentank/373243/Fluttershy-Fanart'}; var Fluttershy_HU_NSFW_Rainbow_HU = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_Rainbow_HU', 'Artist': 'doxy', 'Link': 'https://www.derpibooru.org/653977?scope=scpef77e4a704f947b9201c4216e2e33c7017a8daa8a'}; var Fluttershy_HU_NSFW_Applejack_HU = {'Unlocked': false, 'Name': 'Fluttershy_HU_NSFW_Applejack_HU', 'Artist': 'Atryl', 'Link': 'http://atrylplus.tumblr.com/post/28238148677/ninjahams-ponilove-30min-challenge-topic-today'}; var Rainbow_NSFW_1 = {'Unlocked': false, 'Name': 'Rainbow_NSFW_1', 'Artist': 'formalgentleman', 'Link': 'http://formalgentleman.tumblr.com/post/85090214948/well-then-been-a-while-i-know-hehe-just-when'}; var Rainbow_NSFW_2 = {'Unlocked': false, 'Name': 'Rainbow_NSFW_2', 'Artist': 'Pony-butt-express', 'Link': 'http://pony-butt-express.tumblr.com/post/112211389165/woo-more-buttts-d-rainbow-dash-because-i-dont'}; var Rainbow_NSFW_3 = {'Unlocked': false, 'Name': 'Rainbow_NSFW_3', 'Artist': 'Dimwitdog', 'Link': 'http://dimwitdog.com/post/115782689391'}; var Rainbow_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Rainbow_NSFW_Tentakel', 'Artist': 'swaetshrit', 'Link': 'https://www.derpibooru.org/73'}; var Rainbow_NSFW_Gilda = {'Unlocked': false, 'Name': 'Rainbow_NSFW_Gilda', 'Artist': 'Grumblepluck', 'Link': 'https://e621.net/post/show/416598'}; var Rainbow_NSFW_Twilight = {'Unlocked': false, 'Name': 'Rainbow_NSFW_Twilight', 'Artist': 'ponegranate', 'Link': 'http://ponegranate.tumblr.com/post/61511882852/twidash-sex-on-a-cloud-kinda-cliche-i-know'}; var Rainbow_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Rainbow_AN_NSFW_1', 'Artist': 'unknown', 'Link': 'http://rule34.paheal.net/post/view/1417853'}; var Rainbow_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Rainbow_AN_NSFW_2', 'Artist': 'Pony-butt-express', 'Link': 'http://pony-butt-express.tumblr.com/post/98099768545/been-a-while-but-i-take-a-long-time-to-draw-and'}; var Rainbow_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Rainbow_AN_NSFW_3', 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/111943769019/commission-for-rockarboom2013-furaffinity-v'}; var Rainbow_AN_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Rainbow_AN_NSFW_Tentakel', 'Artist': 'ayloulou', 'Link': 'http://www.furaffinity.net/view/15863996/'}; var Rainbow_AN_NSFW_Redheart_AN = {'Unlocked': false, 'Name': 'Rainbow_AN_NSFW_Redheart_AN', 'Artist': 'lizombie', 'Link': 'https://e621.net/post/show/397737'}; var Rainbow_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Rainbow_HU_NSFW_1', 'Artist': 'l47sh', 'Link': 'http://www.hentai-foundry.com/pictures/user/L47SH/414450/rainy-dashy'}; var Rainbow_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Rainbow_HU_NSFW_2', 'Artist': 'Pburstfire', 'Link': 'http://burst-fire.tumblr.com/post/132380315509/scoring-on-the-field'}; var Rainbow_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Rainbow_HU_NSFW_3', 'Artist': 'captainpudgemuffin', 'Link': 'http://captainbutteredmuffin.tumblr.com/post/128671590351/i-did-it-3-watercolor-pencils-and-acrylic'}; var Rainbow_HU_NSFW_Pinkie_HU = {'Unlocked': false, 'Name': 'Rainbow_HU_NSFW_Pinkie_HU', 'Artist': 'freedoomthai', 'Link': 'https://www.furaffinity.net/view/10165056'}; var Pinkie_NSFW_1 = {'Unlocked': false, 'Name': 'Pinkie_NSFW_1', 'Artist': 'tailung', 'Link': 'http://www.furaffinity.net/full/18059899/'}; var Pinkie_NSFW_2 = {'Unlocked': false, 'Name': 'Pinkie_NSFW_2', 'Artist': 'slypon', 'Link': 'http://www.furaffinity.net/view/11257692/'}; var Pinkie_NSFW_3 = {'Unlocked': false, 'Name': 'Pinkie_NSFW_3', 'Artist': 'fluffyxai', 'Link': 'https://inkbunny.net/submissionview.php?id=846673'}; var Pinkie_NSFW_Twilight = {'Unlocked': false, 'Name': 'Pinkie_NSFW_Twilight', 'Artist': '0r0chi', 'Link': 'http://www.furaffinity.net/view/12991558/'}; var Pinkie_NSFW_Cadence = {'Unlocked': false, 'Name': 'Pinkie_NSFW_Cadence', 'Artist': 'Docwario', 'Link': 'http://rule34.paheal.net/post/view/1181858'}; var Pinkie_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Pinkie_AN_NSFW_1', 'Artist': 'venauva', 'Link': 'http://venauva.tumblr.com/post/75712601766'}; var Pinkie_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Pinkie_AN_NSFW_2', 'Artist': 'mewyk91', 'Link': 'https://inkbunny.net/submissionview.php?id=835822'}; var Pinkie_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Pinkie_AN_NSFW_3', 'Artist': 'cyancapsule', 'Link': 'https://inkbunny.net/submissionview.php?id=852576'}; var Pinkie_AN_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Pinkie_AN_NSFW_Tentakel', 'Artist': 'zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/96770297995'}; var Pinkie_AN_NSFW_Spa_AN = {'Unlocked': false, 'Name': 'Pinkie_AN_NSFW_Spa_AN', 'Artist': 'shepherd0821', 'Link': 'http://www.furaffinity.net/view/16841733/'}; var Pinkie_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Pinkie_HU_NSFW_1', 'Artist': 'Unknown', 'Link': 'https://www.derpibooru.org/347214?scope=scpe35a00fb2901b4bc52d931e1e569093d0bf8237d3'}; var Pinkie_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Pinkie_HU_NSFW_2', 'Artist': 'sanders', 'Link': 'http://bubbleberrysanders.tumblr.com/image/66443090507'}; var Pinkie_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Pinkie_HU_NSFW_3', 'Artist': 'mew', 'Link': 'http://ponyplots.tumblr.com/'}; var Pinkie_HU_NSFW_Rainbow_HU = {'Unlocked': false, 'Name': 'Pinkie_HU_NSFW_Rainbow_HU', 'Artist': 'Stoic5', 'Link': 'http://stoicfive.tumblr.com/post/75134686115'}; var Rarity_NSFW_1 = {'Unlocked': false, 'Name': 'Rarity_NSFW_1', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/143648419575/ride-it-rarity-larger'}; var Rarity_NSFW_2 = {'Unlocked': false, 'Name': 'Rarity_NSFW_2', 'Artist': 'Atane27', 'Link': 'http://atane18.tumblr.com/post/134556678172'}; var Rarity_NSFW_3 = {'Unlocked': false, 'Name': 'Rarity_NSFW_3', 'Artist': 'shydale', 'Link': 'http://darkdale.tumblr.com/post/103692509184/rybj'}; var Rarity_NSFW_Luna = {'Unlocked': false, 'Name': 'Rarity_NSFW_Luna', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/69194590949'}; var Rarity_NSFW_Fluttershy = {'Unlocked': false, 'Name': 'Rarity_NSFW_Fluttershy', 'Artist': 'huebris', 'Link': 'http://huebree.tumblr.com/post/147425033926'}; var Rarity_NSFW_Applejack = {'Unlocked': false, 'Name': 'Rarity_NSFW_Applejack', 'Artist': 'aruurara', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=38628938'}; var Rarity_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Rarity_AN_NSFW_1', 'Artist': 'melancholy', 'Link': 'http://melancholy-meloncollie.tumblr.com/post/90183976540/24'}; var Rarity_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Rarity_AN_NSFW_2', 'Artist': 'mastergodai', 'Link': 'http://www.furaffinity.net/view/16424248/'}; var Rarity_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Rarity_AN_NSFW_3', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/148161917725/rarararara-full'}; var Rarity_AN_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Rarity_AN_NSFW_Tentakel', 'Artist': 'cheezayballz', 'Link': 'http://www.furaffinity.net/view/16472789/'}; var Rarity_AN_NSFW_Spa_AN = {'Unlocked': false, 'Name': 'Rarity_AN_NSFW_Spa_AN', 'Artist': 'Atryl', 'Link': 'http://atrylplus.tumblr.com/post/68232637152/special-service-so-heres-one-of-the-pictures-i'}; var Rarity_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Rarity_HU_NSFW_1', 'Artist': 'doxy', 'Link': 'http://mylittledoxy.tumblr.com/post/43912824994/rarity-the-attack-of-the-beet-red-dongs'}; var Rarity_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Rarity_HU_NSFW_2', 'Artist': 'sundown', 'Link': 'http://sunnysundown.tumblr.com/post/125685902881'}; var Rarity_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Rarity_HU_NSFW_3', 'Artist': 'annon', 'Link': 'http://annon-mlp.tumblr.com/'}; var Rarity_HU_NSFW_Twilight_HU = {'Unlocked': false, 'Name': 'Rarity_HU_NSFW_Twilight_HU', 'Artist': 'cogbrony', 'Link': 'http://danandcogcorner.tumblr.com/post/119721393671/some-more-twi-and-rarity-w'}; var Applejack_NSFW_1 = {'Unlocked': false, 'Name': 'Applejack_NSFW_1', 'Artist': 'fapplejackoff', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=32468856'}; var Applejack_NSFW_2 = {'Unlocked': false, 'Name': 'Applejack_NSFW_2', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/144922212115/apple-on-a-spa-full'}; var Applejack_NSFW_3 = {'Unlocked': false, 'Name': 'Applejack_NSFW_3', 'Artist': 'dfectivedvice', 'Link': 'https://www.derpibooru.org/tags/artist-colon-dfectivedvice'}; var Applejack_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Applejack_NSFW_Tentakel', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/116397036631'}; var Applejack_NSFW_Luna = {'Unlocked': false, 'Name': 'Applejack_NSFW_Luna', 'Artist': 'ratofdrawn', 'Link': 'http://ratofponi.tumblr.com/post/143701719375/commission-for-sirholi-high-res-here-enjoy-some'}; var Applejack_NSFW_Rainbow = {'Unlocked': false, 'Name': 'Applejack_NSFW_Rainbow', 'Artist': 'caboni32', 'Link': 'http://www.furaffinity.net/view/20825793/'}; var Applejack_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Applejack_AN_NSFW_1', 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=660416'}; var Applejack_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Applejack_AN_NSFW_2', 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=664620&page=7'}; var Applejack_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Applejack_AN_NSFW_3', 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=664620&page=12'}; var Applejack_AN_NSFW_Luna_AN = {'Unlocked': false, 'Name': 'Applejack_AN_NSFW_Luna_AN', 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=659947'}; var Applejack_AN_NSFW_Celestia_AN = {'Unlocked': false, 'Name': 'Applejack_AN_NSFW_Celestia_AN', 'Artist': 'xanthor', 'Link': 'http://xanthor.tumblr.com/image/108406252034'}; var Applejack_HU_NSFW_1 = {'Unlocked': false, 'Name': 'Applejack_HU_NSFW_1', 'Artist': 'freedomthai', 'Link': 'http://www.furaffinity.net/view/20698391/'}; var Applejack_HU_NSFW_2 = {'Unlocked': false, 'Name': 'Applejack_HU_NSFW_2', 'Artist': 'glacierclear', 'Link': 'http://www.furaffinity.net/view/19483631/'}; var Applejack_HU_NSFW_3 = {'Unlocked': false, 'Name': 'Applejack_HU_NSFW_3', 'Artist': 'Rammbrony', 'Link': 'http://gelbooru.com/index.php?page=post&s=view&id=2089211'}; var Applejack_HU_NSFW_Rarity = {'Unlocked': false, 'Name': 'Applejack_HU_NSFW_Rarity', 'Artist': 'freedomthai', 'Link': 'http://freedomthai.tumblr.com/image/42526761212'}; var Zecora_NSFW_1 = {'Unlocked': false, 'Artist': 'cobaltsnow', 'Link': 'http://asknsfwcobaltsnow.tumblr.com/post/51911673496'}; var Zecora_NSFW_2 = {'Unlocked': false, 'Artist': 'shepherd0821', 'Link': 'http://www.furaffinity.net/user/shepherd0821/'}; var Zecora_NSFW_3 = {'Unlocked': false, 'Artist': 'justpony', 'Link': 'http://hikxie.tumblr.com/'}; var Zecora_NSFW_Twilight = {'Unlocked': false, 'Artist': 'mirapony', 'Link': 'https://inkbunny.net/submissionview.php?id=512564'}; var Zecora_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'mewyk91', 'Link': 'https://inkbunny.net/submissionview.php?id=552843'}; var Spa_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://www.furaffinity.net/view/10836831/'}; var Spa_NSFW_2 = {'Unlocked': false, 'Artist': 'omi', 'Link': 'http://omi.sexy/post/148862651421/spa-special-services-a-pic-i-did-a-while-ago-for'}; var Spa_NSFW_3 = {'Unlocked': false, 'Artist': 'xanthor', 'Link': 'http://xanthor.tumblr.com/post/83618688626/royal-treatment-its-been-a-while-since-ive-drawn'}; var Spa_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'iados', 'Link': 'http://iados-nsfw.tumblr.com/post/124320733586/well-this-one-took-way-too-much-damn-time-but-at'}; var Spa_NSFW_Rarity = {'Unlocked': false, 'Artist': 'lumineko', 'Link': 'http://nsfwneko.tumblr.com/post/102669171065/time-at-the-spa-without-the-caption-as'}; var Spa_NSFW_Fluttershy = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/image/53457261120'}; var Spa_NSFW_Applejack = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/image/53392346375'}; var Spa_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'swordkirby', 'Link': 'http://tristaya-swordkirby.tumblr.com/post/92190412069/red-gear-getting-some-special-service-from'}; var Spa_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'arnachy', 'Link': 'http://geeflakesden.tumblr.com/post/138615748261/january-commission-for-eddie-if-you-like-my-art'}; var Spa_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'Theorangewolf', 'Link': 'http://www.furaffinity.net/view/21140119/'}; var Spa_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'arnachy', 'Link': 'http://geeflakesden.tumblr.com/post/138615748261/january-commission-for-eddie-if-you-like-my-art'}; var Octavia_NSFW_1 = {'Unlocked': false, 'Artist': 'pogans', 'Link': 'http://zzcomics.tumblr.com/post/49590453051'}; var Octavia_NSFW_2 = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/58313146704'}; var Octavia_NSFW_3 = {'Unlocked': false, 'Artist': 'navanastra', 'Link': 'https://inkbunny.net/submissionview.php?id=760368'}; var Octavia_NSFW_Vinyl = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/139004196895/im-trying-to-draw-a-different-art-style-hope-you'}; var Octavia_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://www.furaffinity.net/full/14516072/'}; var Octavia_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'm@k', 'Link': 'https://e621.net/post/show/625865'}; var Octavia_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'patch', 'Link': 'http://patchsblog.tumblr.com/post/114896034886/have-some-tavi-with-a-bloodborne-inspired'}; var Octavia_AN_NSFW_Vinyl_AN = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/150602010145/fill-them-both-full'}; var Vinyl_NSFW_1 = {'Unlocked': false, 'Artist': 'skipsy', 'Link': 'http://skipsy.tumblr.com/post/41426278814/decided-to-give-some-point-of-view-type-thing-a'}; var Vinyl_NSFW_2 = {'Unlocked': false, 'Artist': 'capseys', 'Link': 'http://capseys.tumblr.com/post/123738523983/see-not-dead'}; var Vinyl_NSFW_3 = {'Unlocked': false, 'Artist': 'jcosneverexisted', 'Link': 'http://jcosmirrorarts.tumblr.com/post/141867928752/afterchallenge-vinyl-scratch-massaging-glasses#'}; var Vinyl_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'terrabutt', 'Link': 'http://terra-butt.tumblr.com/post/47663155545/i-probably-ate-six-slices-of-pizza-while-i-drew'}; var Vinyl_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=719489'}; var Vinyl_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'skipsy', 'Link': 'http://skipsy.tumblr.com/post/89317788048/you-know-what-this-means-i-finished-another-folio'}; var Vinyl_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'drbdnv', 'Link': 'http://ponideathmarch.tumblr.com/post/58968877998/commission-vinyl-jam-session'}; var Vinyl_AN_NSFW_Octavia_AN = {'Unlocked': false, 'Artist': 'Audrarius', 'Link': 'http://audraria.tumblr.com/post/130065190772'}; var Fleur_NSFW_1 = {'Unlocked': false, 'Artist': 'kloudmutt', 'Link': 'http://naughtyklodette.tumblr.com/post/49758504304'}; var Fleur_NSFW_2 = {'Unlocked': false, 'Artist': 'nitromethane', 'Link': 'http://www.furaffinity.net/view/16171289/'}; var Fleur_NSFW_3 = {'Unlocked': false, 'Artist': 'zanthu', 'Link': 'http://www.furaffinity.net/full/6969027/'}; var Fleur_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'conrie', 'Link': 'http://conriensfw.tumblr.com/post/76545358951/fleur-and-those-tentacles-this-makes-sense'}; var Fleur_NSFW_Rarity = {'Unlocked': false, 'Artist': 'php7', 'Link': 'https://www.derpibooru.org/996552?scope=scpe3bae895580c1aa4502c76f19e331f5c8ff3d6f93'}; var Fleur_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'rayzor-sharp', 'Link': 'http://rayzoirsketches.tumblr.com/post/45528524370'}; var Fleur_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'dekomaru', 'Link': 'http://thehotroom.tumblr.com/post/119235442225/i-been-wanting-to-do-something-like-this-to-show'}; var Fleur_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'bbmbbf', 'Link': 'https://media.8ch.net/respawned420chan/src/1439590162615-0.jpg'}; var Fleur_AN_NSFW_Rarity_AN = {'Unlocked': false, 'Artist': 'balooga', 'Link': 'http://thisisbalooga.tumblr.com/post/33935388935/expensive-taste-art-trade-with'}; var Fleur_AN_NSFW_Sassy_AN = {'Unlocked': false, 'Artist': 'daxhie', 'Link': 'http://daxhie.tumblr.com/post/131757851944'}; var Flutterbat_NSFW_1 = {'Unlocked': false, 'Artist': 'kinkypinkie', 'Link': 'https://inkbunny.net/submissionview.php?id=541168'}; var Flutterbat_NSFW_2 = {'Unlocked': false, 'Artist': 'shinodage', 'Link': 'http://shinonsfw.tumblr.com/post/131975113439/ooo-spooky-i-was-working-on-a-futa-edit-but-had-to'}; var Flutterbat_NSFW_3 = {'Unlocked': false, 'Artist': 'rainbowscreen', 'Link': 'https://e621.net/post/show/513274'}; var Flutterbat_NSFW_Rainbow = {'Unlocked': false, 'Artist': 'steen', 'Link': 'https://inkbunny.net///files/full/761/761545_Steen_flutterdash_1-2.png'}; var Flutterbat_NSFW_Applejack = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/83661120877'}; var Flutterbat_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/101346048854/nom-nom'}; var Flutterbat_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'Rainbowscreen', 'Link': 'http://rainbowscreen.tumblr.com/post/126460671479/flutterbat-for-ya-guys-hope-you-enjoy-this'}; var Flutterbat_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'Audrarius', 'Link': 'https://inkbunny.net/submissionview.php?id=977421'}; var Flutterbat_AN_NSFW_Applejack_AN = {'Unlocked': false, 'Artist': 'siden', 'Link': 'http://besidenmyart.tumblr.com/post/73786628704/an-apple-a-day-does-not-keep-flutterbat-away'}; var Flutterbat_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'streetdragon', 'Link': 'http://www.furaffinity.net/view/21164638/'}; var Coco_NSFW_1 = {'Unlocked': false, 'Name': 'Coco_NSFW_1', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/145921518040/thick-coco-full'}; var Coco_NSFW_2 = {'Unlocked': false, 'Name': 'Coco_NSFW_2', 'Artist': 'neighday', 'Link': 'http://neighday.tumblr.com/post/142555048331'}; var Coco_NSFW_3 = {'Unlocked': false, 'Name': 'Coco_NSFW_3', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/142914360045'}; var Coco_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Coco_NSFW_Tentakel', 'Artist': 'he4rtofcourage', 'Link': 'http://cherrybellechibichibi.tumblr.com/post/72757059705'}; var Coco_NSFW_Rarity = {'Unlocked': false, 'Name': 'Coco_NSFW_Rarity', 'Artist': 'lumineko', 'Link': 'http://nsfw.lumineko.com/post/147878519550/httpswwwpatreoncomlumineko-reuploaded-to'}; var Maud_NSFW_1 = {'Unlocked': false, 'Name': 'Maud_NSFW_1', 'Artist': 'rico-cake', 'Link': 'https://inkbunny.net/submissionview.php?id=694407'}; var Maud_NSFW_2 = {'Unlocked': false, 'Name': 'Maud_NSFW_2', 'Artist': 'cold blooded twilight', 'Link': 'http://atthefrozenhorizon.tumblr.com/image/81390778259'}; var Maud_NSFW_3 = {'Unlocked': false, 'Name': 'Maud_NSFW_3', 'Artist': 'jailbait Knight', 'Link': 'http://jailbait-knight.tumblr.com/post/148421850654/couldnt-help-myself-d'}; var Maud_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Maud_NSFW_Tentakel', 'Artist': 'nekubi', 'Link': 'http://nekubila.tumblr.com/post/82561145827/14-04-13'}; var Cheerilee_NSFW_1 = {'Unlocked': false, 'Name': 'Cheerilee_NSFW_1', 'Artist': 'spiral shockwave', 'Link': 'http://www.furaffinity.net/view/10750360/'}; var Cheerilee_NSFW_2 = {'Unlocked': false, 'Name': 'Cheerilee_NSFW_2', 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/51061162989/beautiful-bride'}; var Cheerilee_NSFW_3 = {'Unlocked': false, 'Name': 'Cheerilee_NSFW_3', 'Artist': 'teta', 'Link': 'http://dark-teta.tumblr.com/'}; var Cheerilee_NSFW_Applejack = {'Unlocked': false, 'Name': 'Cheerilee_NSFW_Applejack', 'Artist': 'ragingsemi', 'Link': 'http://rsupshift.tumblr.com/image/49958443114'}; var Gilda_NSFW_1 = {'Unlocked': false, 'Name': 'Gilda_NSFW_1', 'Artist': 'omi', 'Link': 'http://omi.sexy/post/129031876621'}; var Gilda_NSFW_2 = {'Unlocked': false, 'Name': 'Gilda_NSFW_2', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/123131130386'}; var Gilda_NSFW_3 = {'Unlocked': false, 'Name': 'Gilda_NSFW_3', 'Artist': 'omi', 'Link': 'http://omi.sexy/post/145329194608/catbird-i-still-have-no-idea-how-to-draw-her'}; var Gilda_NSFW_Ember = {'Unlocked': false, 'Name': 'Gilda_NSFW_Ember', 'Artist': 'carnifex', 'Link': 'http://carnisclopcorner.tumblr.com/post/146276790728/commission-interested-in-a-commission'}; var Gilda_NSFW_Pinkie = {'Unlocked': false, 'Name': 'Gilda_NSFW_Pinkie', 'Artist': 'Atryl', 'Link': 'http://www.furaffinity.net/view/9264595/'}; var Gilda_NSFW_Rarity = {'Unlocked': false, 'Name': 'Gilda_NSFW_Rarity', 'Artist': 'i am naked', 'Link': 'http://mildlyliquored.tumblr.com/post/104519416241/more-gilda-on-rarity-action-please-9'}; var Starlight_NSFW_1 = {'Unlocked': false, 'Artist': 'atane27', 'Link': 'http://atane18.tumblr.com/image/135184444507'}; var Starlight_NSFW_2 = {'Unlocked': false, 'Artist': 'shydale', 'Link': 'http://darkdale.tumblr.com/post/116181581429/nice-starlight-picture-do-you-have-a-higher-res'}; var Starlight_NSFW_3 = {'Unlocked': false, 'Artist': 'rico-cake', 'Link': 'https://inkbunny.net/submissionview.php?id=1121260'}; var Starlight_NSFW_Trixie = {'Unlocked': false, 'Artist': 'shydale', 'Link': 'http://darkdale.tumblr.com/post/148472633974/glimtrix-slurp-consider-supporting-my-patreon'}; var Starlight_NSFW_Twilight = {'Unlocked': false, 'Artist': 'syooe b', 'Link': 'http://www.furaffinity.net/view/20571883/'}; var Trixie_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/102426447049/commissions-for-rockarboom2013-member'}; var Trixie_NSFW_2 = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/150506278035/dont-hide-it-silly-full'}; var Trixie_NSFW_3 = {'Unlocked': false, 'Artist': 'leviru', 'Link': 'https://e621.net/post/show/978729'}; var Trixie_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Miketheuser', 'Link': 'http://miketheusernfsw.tumblr.com/post/69975910340'}; var Trixie_NSFW_Twilight = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://209.141.46.34/h/3c529c1034655523d559bc5646ed33fadd10698e-207265-1200-863-jpg/keystamp=1409705700-2f5e4c2283/ReindeerBondage.jpg'}; var Trixie_NSFW_Nightmare = {'Unlocked': false, 'Artist': 'Mirapony', 'Link': 'http://mirapony.tumblr.com/post/55790529005/trixie-x-nightmare-moon-commission-for'}; var Trixie_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'scorpdk', 'Link': 'https://www.furaffinity.net/view/12541735/'}; var Trixie_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'mirapony', 'Link': 'https://inkbunny.net/submissionview.php?id=458178'}; var Trixie_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'skipsy', 'Link': 'http://skipsy.tumblr.com/post/103340156008/'}; var Trixie_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/106365750156'}; var Trixie_AN_NSFW_Twilight_AN = {'Unlocked': false, 'Artist': 'lizombie', 'Link': 'https://inkbunny.net/submissionview.php?id=678590'}; var Trixie_AN_NSFW_Cadence_AN = {'Unlocked': false, 'Artist': 'arnachy', 'Link': 'http://itsfrenchfornaughty.tumblr.com/image/69162940376'}; var Celestia_NSFW_1 = {'Unlocked': false, 'Artist': 'dragk', 'Link': 'https://www.furaffinity.net/view/12037936/'}; var Celestia_NSFW_2 = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/107614607001'}; var Celestia_NSFW_3 = {'Unlocked': false, 'Artist': 'dragk', 'Link': 'http://www.furaffinity.net/view/14737178/'}; var Celestia_NSFW_Spa = {'Unlocked': false, 'Artist': 'Shydale', 'Link': 'http://darkdale.tumblr.com/post/147062944054/spasunday'}; var Celestia_NSFW_Luna = {'Unlocked': false, 'Artist': 'Darkhazard', 'Link': 'https://inkbunny.net/submissionview.php?id=1062757'}; var Celestia_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Balooga', 'Link': 'http://thisisbalooga.tumblr.com/post/67930878232'}; var Celestia_NSFW_Twilight = {'Unlocked': false, 'Artist': 'lumineko', 'Link': 'http://nsfw.lumineko.com/post/151457880890/httpwwwpatreoncomlumineko'}; var Celestia_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/88681103720'}; var Celestia_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'Dark Hazard', 'Link': 'https://inkbunny.net/submissionview.php?id=1150369'}; var Celestia_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'cheezayballz', 'Link': 'http://cheezayballz.tumblr.com/post/143372453061/celestia-getting-some-dick'}; var Celestia_AN_NSFW_Luna_AN = {'Unlocked': false, 'Artist': 'Sodiav', 'Link': 'https://sodiav.tumblr.com/post/152168602960/royal-sisters-full'}; var Celestia_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Oze', 'Link': 'http://oze-jp.tumblr.com/post/97753900353/i-think-this-is-a-failure'}; var Celestia_HU_NSFW_1 = {'Unlocked': false, 'Artist': 'bbmbbf', 'Link': 'https://media.8chan.co/anti420mu/src/1415905156911-2.jpg'}; var Celestia_HU_NSFW_2 = {'Unlocked': false, 'Artist': 'jonfawks', 'Link': 'http://jonfawkes.tumblr.com/post/107766322776/10-tier-commission-for-pony-stark-on-my-patreon'}; var Celestia_HU_NSFW_3 = {'Unlocked': false, 'Artist': 'php1', 'Link': 'http://php1.tumblr.com/'}; var Celestia_HU_NSFW_Luna_HU = {'Unlocked': false, 'Artist': 'Novaquinmat', 'Link': 'http://novaquin34.tumblr.com/post/88738940892/sisters-quality-time-3'}; var Cadence_NSFW_1 = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/36003522543'}; var Cadence_NSFW_2 = {'Unlocked': false, 'Artist': 'twistedscarlett', 'Link': 'http://twistedscarlett.tumblr.com/post/129994451000/colour-edit-of-httptinyurlcompk7jqlj'}; var Cadence_NSFW_3 = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/146577841246'}; var Cadence_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'kanashiipanda', 'Link': 'https://inkbunny.net/submissionview.php?id=864179'}; var Cadence_NSFW_Chrysalis = {'Unlocked': false, 'Artist': 'glacierclear', 'Link': 'http://nsfwglacierclear.tumblr.com/post/117306736404/commission-for-tasteslikechicken'}; var Cadence_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'Zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/103794197435'}; var Cadence_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'daxhie', 'Link': 'http://daxhie.tumblr.com/post/140516680254'}; var Cadence_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'swordkirby', 'Link': 'http://sw0rdkirby.tumblr.com/post/141676859089/made-a-small-doodle-page-of-cadance-cause-shes'}; var Cadence_AN_NSFW_Luna_AN = {'Unlocked': false, 'Artist': 'boltswift', 'Link': 'http://boltswiftartnsfw.tumblr.com/post/86527023979/one-of-my-commish-i-decided-to-post-that-is-one'}; var Cadence_AN_NSFW_Chrysalis_AN = {'Unlocked': false, 'Artist': 'ziemniax', 'Link': 'http://ziemniax.tumblr.com/post/85660826749/chryssie-seems-to-enjoy-spending-time-with-cadance'}; var Luna_NSFW_1 = {'Unlocked': false, 'Artist': 'demonmoon', 'Link': 'http://demomoon.com/post/97557880134'}; var Luna_NSFW_2 = {'Unlocked': false, 'Artist': 'aikostable', 'Link': 'http://aikostable.tumblr.com/post/120132324526'}; var Luna_NSFW_3 = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/140468581945/princess-luna-took-thy-rocket-to-the-moooooon'}; var Luna_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Foxinshadow', 'Link': 'http://foxintwilight.tumblr.com/image/68157177510'}; var Luna_NSFW_Twilight = {'Unlocked': false, 'Artist': 'Ratofdrawn', 'Link': 'http://ratofponi.tumblr.com/post/117892757140'}; var Luna_NSFW_Celestia = {'Unlocked': false, 'Artist': 'Evomanaphy', 'Link': 'http://nsfw-evo.tumblr.com/post/147963786876/this-is-kinda-an-edit-of-a-commission-picture-im'}; var Luna_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'miketheuser', 'Link': 'http://www.furaffinity.net/view/11217934/'}; var Luna_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'Atryl', 'Link': 'https://inkbunny.net/submissionview.php?id=620292'}; var Luna_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'Dark Hazard', 'Link': 'https://inkbunny.net/submissionview.php?id=966283&page=4'}; var Luna_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'Thehashbaron', 'Link': 'http://thehashbaron.tumblr.com/post/118916081063/now-a-bunch-of-stuff-that-i-never-would-post'}; var Luna_AN_NSFW_Celestia_AN = {'Unlocked': false, 'Artist': 'Darkhazard', 'Link': 'https://inkbunny.net/submissionview.php?id=1187439'}; var Luna_HU_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/151893993839/princess-luna-and-her-double-moon-3-if-you'}; var Luna_HU_NSFW_2 = {'Unlocked': false, 'Artist': 'unknown', 'Link': 'https://www.derpibooru.org/126653?scope=scpea3f2fba1748c217d2c6e71ec95f75fea093dd8f0'}; var Luna_HU_NSFW_3 = {'Unlocked': false, 'Artist': 'rimethize', 'Link': 'http://www.hentai-foundry.com/pictures/user/Rimethize/403229/LUNA'}; var Luna_HU_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'cogbrony', 'Link': 'http://danandcogcorner.tumblr.com/post/117448341226'}; var Luna_HU_NSFW_Celestia_HU = {'Unlocked': false, 'Artist': 'garam', 'Link': 'http://garam-tbr.tumblr.com/post/60065655235'}; var Nightmare_NSFW_1 = {'Unlocked': false, 'Artist': 'dragk', 'Link': 'http://www.furaffinity.net/view/12214100/'}; var Nightmare_NSFW_2 = {'Unlocked': false, 'Artist': 'stoic5', 'Link': 'http://stoicfive.tumblr.com/post/103522702064'}; var Nightmare_NSFW_3 = {'Unlocked': false, 'Artist': 'saurian', 'Link': 'http://sauriansponies.tumblr.com/post/107176176229/some-darkmoon-butt-commission'}; var Nightmare_NSFW_Luna = {'Unlocked': false, 'Artist': 'steen', 'Link': 'https://inkbunny.net/submissionview.php?id=438026&page=1'}; var Nightmare_NSFW_Chrysalis = {'Unlocked': false, 'Artist': 'Begasus', 'Link': 'http://weibo.com/tmzysmy?from=myfollow_all'}; var Nightmare_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'phathusa', 'Link': 'http://phathusa.tumblr.com/post/72915790770/yay-finally-reached-200-followers-thank-you-all'}; var Nightmare_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'Atryl', 'Link': 'http://atrylplus.tumblr.com/post/101310137799/nightmare-night-also-from-poni-parade'}; var Nightmare_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'cyancapsule', 'Link': 'https://inkbunny.net/submissionview.php?id=874194'}; var Nightmare_AN_NSFW_Luna_AN = {'Unlocked': false, 'Artist': 'daxhie', 'Link': 'http://daxhie.tumblr.com/post/122844884654'}; var Nightmare_AN_NSFW_Celestia_AN = {'Unlocked': false, 'Artist': 'Mrfatcakes', 'Link': 'http://mrfatcakes.tumblr.com/post/123448970995/fetishless-version'}; var Nightmare_AN_NSFW_Chrysalis_AN = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/108679777654/queen-chrysalis-x-nightmare-moon-commission-for'}; var Ember_NSFW_1 = {'Unlocked': false, 'Name': 'Ember_NSFW_1', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/143025863115/princess-ember-larger-1-2'}; var Ember_NSFW_2 = {'Unlocked': false, 'Name': 'Ember_NSFW_2', 'Artist': 'fearingfun', 'Link': 'http://fearingfun.tumblr.com/post/142938324349/little-preview'}; var Ember_NSFW_3 = {'Unlocked': false, 'Name': 'Ember_NSFW_3', 'Artist': 'fearingfun', 'Link': 'http://fearingfun.tumblr.com/post/142932379644/fearingfun-new-tsundere-waifu-bigger'}; var Ember_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Ember_NSFW_Tentakel', 'Artist': 'avante92', 'Link': 'http://touch.pixiv.net/member_illust.php?mode=big&illust_id=56924508'}; var Ember_NSFW_Twilight = {'Unlocked': false, 'Name': 'Ember_NSFW_Twilight', 'Artist': 'kanashiipanda', 'Link': 'https://inkbunny.net/submissionview.php?id=1073432'}; var Chrysalis_NSFW_1 = {'Unlocked': false, 'Artist': 'stoic5', 'Link': 'http://stoicfive.tumblr.com/post/142450538299'}; var Chrysalis_NSFW_2 = {'Unlocked': false, 'Artist': 'poisondoodles', 'Link': 'http://pickd-your-poisin.tumblr.com/post/139631817876/anon-in-equestria-part-1-of-a-commission-series'}; var Chrysalis_NSFW_3 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/image/108241212549'}; var Chrysalis_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'lonelycross', 'Link': 'http://inkysporncorner.tumblr.com/post/46547312190/piss-for-brains-answered-chrysalis-having-fun#notes'}; var Chrysalis_NSFW_Cadence = {'Unlocked': false, 'Artist': 'navanastra', 'Link': 'https://inkbunny.net/submissionview.php?id=628453'}; var Chrysalis_NSFW_Celestia = {'Unlocked': false, 'Artist': 'dogg', 'Link': 'http://doggart.tumblr.com/post/129626952592/chrissy-lick-i-tried-to-participate-in-the-30'}; var Chrysalis_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'audrarius', 'Link': 'https://inkbunny.net/submissionview.php?id=732474'}; var Chrysalis_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'xanthor', 'Link': 'http://xanthor.tumblr.com/post/124068195059/a-queens-service-i-just-acquired-manga-studios'}; var Chrysalis_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/99982178465'}; var Chrysalis_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'cheezayballz', 'Link': 'http://cheezayballz.tumblr.com/post/117951411021/oh-nooo-tentacle-attack-d'}; var Chrysalis_AN_NSFW_Cadence_AN = {'Unlocked': false, 'Artist': 'zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/149784923070'}; var Chrysalis_AN_NSFW_Nightmare_AN = {'Unlocked': false, 'Artist': 'lumo', 'Link': 'http://lumoscorner.tumblr.com/post/33602315571/and-here-are-the-colours-brighter-version-here'}; var Chrysalis_HU_NSFW_1 = {'Unlocked': false, 'Artist': 'php1', 'Link': 'https://www.derpibooru.org/25479?scope=scpe116b636015904f1527f4a1b44f49370bfb87cef5'}; var Chrysalis_HU_NSFW_2 = {'Unlocked': false, 'Artist': 'unknown', 'Link': 'https://www.derpibooru.org/167787?scope=scpe6c2596c5310799cdcd085d59f6a75024c98e3c10'}; var Chrysalis_HU_NSFW_3 = {'Unlocked': false, 'Artist': 'sebastian oo', 'Link': 'https://www.derpibooru.org/788838?scope=scpe6c2596c5310799cdcd085d59f6a75024c98e3c10'}; var Lyra_NSFW_1 = {'Unlocked': false, 'Artist': 'devo87', 'Link': 'https://www.weasyl.com/submission/989824/lyra'}; var Lyra_NSFW_2 = {'Unlocked': false, 'Artist': 'shinodage', 'Link': 'http://shinonsfw.tumblr.com/post/113564081754/this-pic-took-way-longer-than-expected-d-collab'}; var Lyra_NSFW_3 = {'Unlocked': false, 'Artist': 'anearbyanimal', 'Link': 'http://anearbyanimal.tumblr.com/post/147678724613/lyra-a-cute-pone-my-stream-died-at-the-very-end'}; var Lyra_NSFW_Applejack = {'Unlocked': false, 'Artist': 'oze', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=29720084'}; var Lyra_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'omi', 'Link': 'http://omiart.tumblr.com/post/99150956206'}; var Lyra_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'canonpony', 'Link': 'https://e621.net/post/show/294319'}; var Lyra_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/139304178005/happy-hearts-and-hooves-days-to-all-you-heres-a'}; var Lyra_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'replica', 'Link': 'http://stable86.tumblr.com/post/75300008221'}; var Lyra_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'zwitterkitsune', 'Link': 'http://zwitterkitsune.tumblr.com/post/103965167265'}; var Sunset_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'suirano', 'Link': 'https://www.furaffinity.net/view/15008915/'}; var Sunset_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'rain-gear', 'Link': 'http://rains-sauce.tumblr.com/post/132593232327/man-ive-been-busy-lately-another-butt-focused'}; var Sunset_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'burgerkiss', 'Link': 'http://burgerkiss.tumblr.com/post/135911419365/sunset-shimmer-view-on-inkbunny'}; var Sunset_AN_NSFW_Pinkie_AN = {'Unlocked': false, 'Artist': 'xanthor', 'Link': 'https://inkbunny.net/submissionview.php?id=788506'}; var Velvet_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'freedomthai', 'Link': 'https://www.patreon.com/posts/making-sisters-6773576'}; var Velvet_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'kanashiipanda', 'Link': 'https://inkbunny.net/submissionview.php?id=1080871#pictop'}; var Velvet_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'cbatie11', 'Link': 'http://askthevilcollarpony.tumblr.com/post/150310260148/twilight-velvet-for-the-morning-post-enjoy'}; var Velvet_AN_NSFW_Cadence_AN = {'Unlocked': false, 'Artist': 'kanashiipanda', 'Link': 'https://www.derpibooru.org/1275075?scope=scpeb66e59227ca45df2e250db3139125172af398a48'}; var Velvet_AN_NSFW_Twilight_AN = {'Unlocked': false, 'Artist': 'daxhie', 'Link': 'http://daxhie.tumblr.com/post/135794537624/it-was-a-year-full-of-new-impressions-i-thank-you'}; var Gaby_NSFW_1 = {'Unlocked': false, 'Name': 'Gaby_NSFW_1', 'Artist': 'mlpfwb', 'Link': 'http://mlpfwb.tumblr.com/post/150246822566/helping-any-way-she-can-olderconsenting-age'}; var Gaby_NSFW_2 = {'Unlocked': false, 'Name': 'Gaby_NSFW_2', 'Artist': 'leviru', 'Link': 'http://hioshirunsfw.tumblr.com/post/150192515213'}; var Gaby_NSFW_3 = {'Unlocked': false, 'Name': 'Gaby_NSFW_3', 'Artist': 'h3nger', 'Link': 'http://h3nger-arts.tumblr.com/'}; var Derpy_NSFW_1 = {'Unlocked': false, 'Name': 'Derpy_NSFW_1', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/'}; var Derpy_NSFW_2 = {'Unlocked': false, 'Name': 'Derpy_NSFW_2', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/147114985891'}; var Derpy_NSFW_3 = {'Unlocked': false, 'Name': 'Derpy_NSFW_3', 'Artist': 'sodiav', 'Link': 'http://sodiav.tumblr.com/post/143285006475/derp-larger'}; var Derpy_NSFW_Tentakel = {'Unlocked': false, 'Name': 'Derpy_NSFW_Tentakel', 'Artist': 'shinodage', 'Link': 'http://shinonsfw.tumblr.com/post/145323995194'}; var Derpy_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Derpy_AN_NSFW_1', 'Artist': 'zwitterkitsune', 'Link': 'http://www.furaffinity.net/view/17317352/'}; var Derpy_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Derpy_AN_NSFW_2', 'Artist': 'burgerkiss', 'Link': 'http://burgerkiss.tumblr.com/post/131364001765/derpy-bear-if-you-came-across-a-bear-in-the'}; var Derpy_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Derpy_AN_NSFW_3', 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/136983262121'}; var Derpy_AN_NSFW_Fluttershy_AN = {'Unlocked': false, 'Name': 'Derpy_AN_NSFW_Fluttershy_AN', 'Artist': 'basketgardevoir', 'Link': 'http://bgandrabite.tumblr.com/post/85399146605/pony-sacrifice-comissioned-picture-i-took-a'}; var Nightmare_Rarity_NSFW_1 = {'Unlocked': false, 'Artist': 'ponylicking', 'Link': 'http://ponylicking.tumblr.com/image/50249642101'}; var Nightmare_Rarity_NSFW_2 = {'Unlocked': false, 'Artist': 'halfdeathshadow', 'Link': 'http://hds-platinum.tumblr.com/post/127589417202/nightmarerarity-just-for-spike-highres-download'}; var Nightmare_Rarity_NSFW_3 = {'Unlocked': false, 'Artist': 'ogaraorcynder', 'Link': 'http://www.furaffinity.net/view/20549481/'}; var Nightmare_Rarity_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'phathusa', 'Link': 'http://phathusa.tumblr.com/post/75749549029/spikes-revenge-part-2-to-my-first-nightmare'}; var Nightmare_Rarity_NSFW_Twilight = {'Unlocked': false, 'Artist': 'kanashiipanda', 'Link': 'https://inkbunny.net/submissionview.php?id=1012413'}; var Nightmare_Rarity_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'pia-sama', 'Link': 'http://xrandomxnessx.tumblr.com/post/127057282412/prove-that-you-still-love-me-even-in-this-form'}; var Nightmare_Rarity_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'kame-sama88', 'Link': 'http://www.furaffinity.net/view/11968936/'}; var Nightmare_Rarity_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'tatara94', 'Link': 'http://www.furaffinity.net/view/17497904'}; var Nightmare_Rarity_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'cheezayballz', 'Link': 'http://cheezayballz.tumblr.com/post/139745305666/nightmare-rarity-tentacle-version'}; var Nightmare_Rarity_AN_NSFW_Rarity_AN = {'Unlocked': false, 'Artist': 'drbdnv', 'Link': 'http://ponideathmarch.tumblr.com/post/59213853431/commission-rurrideez'}; var Nightmare_Rarity_AN_NSFW_Nightmare_AN = {'Unlocked': false, 'Artist': 'spunkubus', 'Link': 'http://spunkubus.tumblr.com/post/122294506035/nightmare-what-nightmare-forgive-my-lack-of'}; var Daring_Do_NSFW_1 = {'Unlocked': false, 'Artist': 'Unknown', 'Link': 'http://boards.420chan.org/h/src/1409541545899.jpg'}; var Daring_Do_NSFW_2 = {'Unlocked': false, 'Artist': 'hladlnik', 'Link': 'http://hladilnick.tumblr.com/post/45785012162/unlike-the-fourth-indiana-jones-movie-daring-do-s'}; var Daring_Do_NSFW_3 = {'Unlocked': false, 'Artist': 'mirapony', 'Link': 'https://inkbunny.net/submissionview.php?id=488652'}; var Daring_Do_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'teta', 'Link': 'http://dark-teta.tumblr.com/post/149868372702'}; var Daring_Do_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'hladlnik', 'Link': 'http://hladilnick.tumblr.com/post/45699761978/a-great-conclusion-to-a-daring-adventure'}; var Daring_Do_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'avante92', 'Link': 'http://avante92artblog.tumblr.com/image/59795783947'}; var Daring_Do_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'kanta', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=54083236'}; var Daring_Do_AN_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'bluecoffeedog', 'Link': 'https://inkbunny.net/submissionview.php?id=828139'}; var Daring_Do_AN_NSFW_Rainbow_AN = {'Unlocked': false, 'Artist': 'siden', 'Link': 'http://besidenmyart.tumblr.com/post/52835233502/two-of-a-kind-commission-for-thecamel-for'}; var Dust_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Dust_AN_NSFW_1', 'Artist': 'arnachy', 'Link': 'http://pink4coquine.tumblr.com/image/77222734438'}; var Dust_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Dust_AN_NSFW_2', 'Artist': 'foxinshadow', 'Link': 'http://foxintwilight.tumblr.com/post/104885186617/safe-version-of-a-lightning-dust-drawing-included'}; var Dust_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Dust_AN_NSFW_3', 'Artist': 'audrarius', 'Link': 'https://inkbunny.net/submissionview.php?id=1073988'}; var Dust_AN_NSFW_Gilda = {'Unlocked': false, 'Name': 'Dust_AN_NSFW_Gilda', 'Artist': 'cider', 'Link': 'http://hardciderarts.tumblr.com/post/60732201485/fun-times'}; var Redheart_NSFW_1 = {'Unlocked': false, 'Name': 'Redheart_NSFW_1', 'Artist': 'freedomthai', 'Link': 'http://hinghoilittlepony.tumblr.com/post/50192416339'}; var Redheart_NSFW_2 = {'Unlocked': false, 'Name': 'Redheart_NSFW_2', 'Artist': 'fearingfun', 'Link': 'http://www.furaffinity.net/view/11138790/'}; var Redheart_NSFW_3 = {'Unlocked': false, 'Name': 'Redheart_NSFW_3', 'Artist': 'hua', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=43621034'}; var Redheart_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Redheart_AN_NSFW_1', 'Artist': 'arnachy', 'Link': 'https://e621.net/post/show/349831'}; var Redheart_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Redheart_AN_NSFW_2', 'Artist': 'crombiettw', 'Link': 'http://crombiessketchpad.tumblr.com/post/63034684893/ready-for-your-check-up-was-having-a-chat-on'}; var Redheart_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Redheart_AN_NSFW_3', 'Artist': 'freedomthai', 'Link': 'http://www.furaffinity.net/view/10581282/'}; var Bonbon_NSFW_1 = {'Unlocked': false, 'Artist': 'doxy', 'Link': 'http://www.pixiv.net/member_illust.php?mode=medium&illust_id=31531776'}; var Bonbon_NSFW_2 = {'Unlocked': false, 'Artist': 'maxwell', 'Link': 'http://boiler3.tumblr.com/post/59428907042#2'}; var Bonbon_NSFW_3 = {'Unlocked': false, 'Artist': 'fearingfun', 'Link': 'https://inkbunny.net/submissionview.php?id=1189263'}; var Bonbon_NSFW_Lyra = {'Unlocked': false, 'Artist': 'atane27', 'Link': 'http://atane18.tumblr.com/post/122119389432'}; var Bonbon_AN_NSFW_1 = {'Unlocked': false, 'Name': 'Bonbon_AN_NSFW_1', 'Artist': 'Atryl', 'Link': 'http://atrylplus.tumblr.com/post/101280768404/cram-filled-candy-one-of-my-old-poni-parade'}; var Bonbon_AN_NSFW_2 = {'Unlocked': false, 'Name': 'Bonbon_AN_NSFW_2', 'Artist': 'poisinnoodles', 'Link': 'https://inkbunny.net/submissionview.php?id=932690'}; var Bonbon_AN_NSFW_3 = {'Unlocked': false, 'Name': 'Bonbon_AN_NSFW_3', 'Artist': 'patch', 'Link': 'http://patchsblog.tumblr.com/post/105748999161/have-some-fun-under-the-mistletoe-this-season'}; var Bonbon_AN_NSFW_Lyra_AN = {'Unlocked': false, 'Name': 'Bonbon_AN_NSFW_Lyra_AN', 'Artist': 'avante92', 'Link': 'http://avante92artblog.tumblr.com/image/83845553706'}; var Moondancer_NSFW_1 = {'Unlocked': false, 'Artist': 'kinkypinkie', 'Link': 'https://inkbunny.net/submissionview.php?id=1054359'}; var Moondancer_NSFW_2 = {'Unlocked': false, 'Artist': 'leviru', 'Link': 'http://hioshirunsfw.tumblr.com/post/150654271313'}; var Moondancer_NSFW_3 = {'Unlocked': false, 'Artist': 'dragk', 'Link': 'http://master-dragk.tumblr.com/'}; var Moondancer_NSFW_Tentakel = {'Unlocked': false, 'Artist': 'mina-the-pie', 'Link': 'http://mina-the-pie.tumblr.com/post/128355830408'}; var Moondancer_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'burgerkiss', 'Link': 'http://burgerkiss.tumblr.com/post/141552071540/moondancer-its-been-awhile-for-me-to-post'}; var Moondancer_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'dozer', 'Link': 'http://nsfwdozer.tumblr.com/post/133310819069'}; var Moondancer_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'Darkhazard', 'Link': 'https://www.derpibooru.org/934392?scope=scpe4289c547a0491f5322363a9347bde7fd9d185ac5'}; var Moondancer_AN_NSFW_Luna_AN = {'Unlocked': false, 'Artist': 'pastelmistress', 'Link': 'https://www.derpibooru.org/1153389?scope=scpe262c504147ec64b99f67b8e5623f03525233d9f2'}; var Moondancer_AN_NSFW_Twilight_AN = {'Unlocked': false, 'Artist': 'Dimwitdog', 'Link': 'https://www.dropbox.com/sh/mvcqgwab6ho308c/AADRS5Kgt0z2V3wRuFs62pIha?dl=0&preview=Apr4-16e1.png'}; var Sassy_NSFW_1 = {'Unlocked': false, 'Artist': 'anuvia', 'Link': 'http://www.furaffinity.net/view/17692887'}; var Sassy_NSFW_2 = {'Unlocked': false, 'Artist': 'conrie', 'Link': 'http://conriensfw.tumblr.com/image/133484640097'}; var Sassy_NSFW_3 = {'Unlocked': false, 'Artist': 'dimwitdog', 'Link': 'http://dimwitdog.com/post/137588491671'}; var Sassy_AN_NSFW_1 = {'Unlocked': false, 'Artist': 'burgerkiss', 'Link': 'http://burgerkiss.tumblr.com/post/129915569610/sassy-saddles-view-on-inkbunny'}; var Sassy_AN_NSFW_2 = {'Unlocked': false, 'Artist': 'foxinshadow', 'Link': 'https://e621.net/post/show/786873'}; var Sassy_AN_NSFW_3 = {'Unlocked': false, 'Artist': 'smisa', 'Link': 'https://e621.net/post/show/739018'}; var Sassy_AN_NSFW_Fleur_AN = {'Unlocked': false, 'Artist': 'Mina-the-pie', 'Link': '//http://mina-the-pie.tumblr.com/post/129089712133/royal-strippers'}; var Sassy_AN_NSFW_Rarity_AN = {'Unlocked': false, 'Artist': 'Mina-the-pie', 'Link': 'http://mina-the-pie.tumblr.com/post/129089712133/'}; var Coloratura_NSFW_1 = {'Unlocked': false, 'Name': 'Coloratura_NSFW_1', 'Artist': 'Evomanaphy', 'Link': 'http://nsfw-evo.tumblr.com/post/149147645861/another-commission-for-my-friend-gesut-im'}; var Coloratura_NSFW_2 = {'Unlocked': false, 'Name': 'Coloratura_NSFW_2', 'Artist': 'zraxi', 'Link': 'https://inkbunny.net/submissionview.php?id=976625'}; var Coloratura_NSFW_3 = {'Unlocked': false, 'Name': 'Coloratura_NSFW_3', 'Artist': 'paulpeopless', 'Link': 'http://paulpeopless.tumblr.com/post/134187428628/rara-giving-herself-a-good-show'}; var Dummy_AN_NSFW_1 = {'Unlocked': false, 'Artist': '', 'Link': ''}; var Dummy_AN_NSFW_2 = {'Unlocked': false, 'Artist': '', 'Link': ''}; var Dummy_AN_NSFW_3 = {'Unlocked': false, 'Artist': '', 'Link': ''}; } frame 5 { function Init_Main() { Init_Header(); Init_Version.text = Sys.Version; Checkbox_Anthro._xscale = 150; Checkbox_Anthro._yscale = 150; Checkbox_Anthro.setStyle('fontSize', 10); Checkbox_Humanized._xscale = 150; Checkbox_Humanized._yscale = 150; Checkbox_Humanized.setStyle('fontSize', 10); Checkbox_Creatures._xscale = 150; Checkbox_Creatures._yscale = 150; Checkbox_Creatures.setStyle('fontSize', 10); Checkbox_Failsafe._xscale = 150; Checkbox_Failsafe._yscale = 150; Checkbox_Failsafe.setStyle('fontSize', 10); Checkbox_Relaxed._xscale = 150; Checkbox_Relaxed._yscale = 150; Checkbox_Relaxed.setStyle('fontSize', 10); Button_Deutsch.setStyle('fontSize', 16); Button_English.setStyle('fontSize', 16); Text_Anthro.depthChild0._alpha = 0; Text_Anthro.styleSheet = styles; Text_Anthro.vScrollPolicy = 'off'; Text_Human.depthChild0._alpha = 0; Text_Human.styleSheet = styles; Text_Human.vScrollPolicy = 'off'; Text_Creatures.depthChild0._alpha = 0; Text_Creatures.styleSheet = styles; Text_Creatures.vScrollPolicy = 'off'; Text_Failsafe.depthChild0._alpha = 0; Text_Failsafe.styleSheet = styles; Text_Failsafe.vScrollPolicy = 'off'; Text_Relaxed.depthChild0._alpha = 0; Text_Relaxed.styleSheet = styles; Text_Relaxed.vScrollPolicy = 'off'; if (Sys.English == true) { Button_English.visible = false; Button_Deutsch.visible = true; Checkbox_Humanized.label = 'Humanized'; Checkbox_Creatures.label = 'Creatures'; Checkbox_Failsafe.label = 'Failsafe'; Text_Anthro.text = '<h4>Checking the Anthro Option will add an anthro version of some mares with identical stats but with other pictures. </h4>'; Text_Human.text = '<h4>Checking the Humanized Option will add an human/Equestria Girls version of some mares with identical stats but with other pictures.</h4>'; Text_Creatures.text = '<h4>Checking the Creatures Option will add some non pony characters like griffons and dragons to the available Mares</h4>'; Text_Failsafe.text = '<h4>Checking the Failsafe Option, the game will not end when you fail to complete your objectives or lose to many money.</h4>'; Text_Relaxed.text = '<h4>Checking the Relax Option, all mares will be unlocked right from the beginning so you don\'t have to care about objectives.</h4>'; } else { Button_Deutsch.visible = false; Button_English.visible = true; Checkbox_Humanized.label = 'Vermenschlicht'; Checkbox_Creatures.label = 'Kreaturen'; Checkbox_Failsafe.label = 'Sicherheitsmodus'; Text_Anthro.text = '<h4>Diese Option fügt dem Spiel eine Reihe von anthro Stuten hinzu die die gleichen Werte wie ihre normalen Formen besitzten, jedoch mit anderen Bildern.</h4>'; Text_Human.text = '<h4>Diese Option fügt dem Spiel eine Reihe von vermenschlcihten Stuten hinzu die die gleichen Werte wie ihre normalen Formen besitzten, jedoch mit anderen Bildern.</h4>'; Text_Creatures.text = '<h4>Diese Option fügt dem Spiel einige nicht-Pony Wesen hinzu. Zum Beispiel Drachen oder Greifen.</h4>'; Text_Failsafe.text = '<h4>Im Sicherheitsmodus kann man das Spiel nicht verlieren wenn man seine Aufgaben nicht schafft oder zu viel Geld verliert.</h4>'; Text_Relaxed.text = '<h4>Die Relax Option schaltet von beginn an alle Stuten im Markt frei so dass man sich nicht um die Aufgaben kümmern muss.</h4>'; } } Sys.Version = Game_Version; Init_Main(); Clear_NSFW(); stop(); Button_English.onRelease = function () { Sys.English = true; Init_Main(); }; Button_Deutsch.onRelease = function () { Sys.English = false; Init_Main(); }; Button_Init_Start.onRelease = function () { if (Checkbox_Failsafe.selected == true) { Sys.Failsafe_Mode = true; } if (Checkbox_Relaxed.selected == true) { Sys.Relaxed_Mode = true; Sys.Failsafe_Mode = true; } if (Checkbox_Anthro.selected == true) { Sys.Anthro = true; } if (Checkbox_Humanized.selected == true) { Sys.Human = true; } if (Checkbox_Creatures.selected == true) { Sys.Creatures = true; } if (Sys.Anthro == true) { All_Mares = All_Mares.concat(Anthro_Mares); } if (Sys.Human == true) { All_Mares = All_Mares.concat(Humanized_Mares); } if (Sys.Creatures == true) { All_Mares = All_Mares.concat(Creature_Rooster); } if (Sys.Anthro == true && Sys.Creatures == true) { All_Mares = All_Mares.concat(Anthro_Creatures); } if (Sys.Human == true && Sys.Creatures == true) { All_Mares = All_Mares.concat(Human_Creatures); } Sort_Mares(); i = 0; while (i < All_Mares.length) { if (eval(All_Mares[i] + '_NSFW_1.Unlocked') == false) { ++Sys.Locked_Pics; } if (eval(All_Mares[i] + '_NSFW_2.Unlocked') == false) { ++Sys.Locked_Pics; } if (eval(All_Mares[i] + '_NSFW_3.Unlocked') == false) { ++Sys.Locked_Pics; } Special_Mare = eval(All_Mares[i] + '.Special'); j = 0; while (j < Special_Mare.length) { if (eval(All_Mares[i] + '_NSFW_' + Special_Mare[j] + '.Unlocked') == false) { ++Sys.Locked_Pics; } ++j; } ++i; } i = 0; while (i < All_Mares.length) { if (All_Mares[i].substr(All_Mares[i].length - 3, All_Mares[i].length) == '_AN') { temp = All_Mares[i].substr(0, All_Mares[i].length - 3); } else { if (All_Mares[i].substr(All_Mares[i].length - 3, All_Mares[i].length) == '_HU') { temp = All_Mares[i].substr(0, All_Mares[i].length - 3); } else { temp = All_Mares[i]; } } eval(All_Mares[i] + '.Price') = Math.floor(eval(All_Mares[i] + '.Price')); eval(All_Mares[i] + '.Special_Number') = eval(All_Mares[i] + '.Special.length'); ++i; } i = 0; while (i < Available_Mares.length) { eval(Available_Mares[i] + '.Sick') = 0; Promo_Temp.Rank = eval(Available_Mares[i] + '.Endurance'); Promo_Temp.Rank += eval(Available_Mares[i] + '.Obediance'); Promo_Temp.Rank += eval(Available_Mares[i] + '.Worth'); Promo_Temp.Rank += eval(Available_Mares[i] + '.Skill'); Promo_Temp.Rank += eval(Available_Mares[i] + '.Attraction'); Promo_Temp.Rank += eval(Available_Mares[i] + '.Charisma'); Promo_Temp.Rank = Math.floor(Promo_Temp.Rank / 100); eval(Available_Mares[i] + '.Rank') = Promo_Temp.Rank; Promo_Temp.Cost = eval(Available_Mares[i] + '.Worth') * eval(Available_Mares[i] + '.Rank'); Promo_Temp.Cost *= (eval(Available_Mares[i] + '.Skill') + eval(Available_Mares[i] + '.Attraction')) / 45; eval(Available_Mares[i] + '.Cost') = Math.floor(Promo_Temp.Cost + eval(Available_Mares[i] + '.Base_Cost')); ++i; } gotoAndPlay(6); }; } movieClip 286 { } movieClip 394 { } movieClip 397 { } movieClip 400 { } movieClip 403 { } movieClip 406 { } movieClip 409 { } movieClip 412 { } movieClip 415 { } movieClip 418 { } movieClip 421 { } movieClip 424 { } movieClip 427 { } movieClip 430 { } movieClip 433 { } movieClip 436 { } movieClip 439 { } movieClip 442 { } movieClip 445 { } movieClip 448 { } movieClip 451 { } movieClip 454 { } movieClip 457 { } movieClip 460 { } movieClip 463 { } movieClip 466 { } movieClip 469 { } movieClip 472 { } movieClip 475 { } movieClip 478 { } movieClip 481 { } movieClip 484 { } movieClip 487 { } movieClip 490 { } movieClip 493 { } movieClip 496 { } movieClip 499 { } movieClip 502 { } movieClip 505 { } movieClip 508 { } movieClip 511 { } movieClip 514 { } movieClip 517 { } movieClip 520 { } movieClip 523 { } movieClip 526 { } movieClip 529 { } movieClip 532 { } movieClip 535 { } movieClip 538 { } movieClip 541 { } movieClip 544 { } movieClip 547 { } movieClip 550 { } movieClip 553 { } movieClip 556 { } movieClip 559 { } movieClip 562 { } movieClip 565 { } movieClip 568 { } movieClip 571 { } movieClip 574 { } movieClip 577 { } movieClip 580 { } movieClip 583 { } movieClip 586 { } movieClip 589 { } movieClip 592 { } movieClip 595 { } movieClip 598 { } movieClip 601 { } movieClip 604 { } movieClip 607 { } movieClip 610 { } movieClip 613 { } movieClip 616 { } movieClip 619 { } movieClip 622 { } movieClip 625 { } movieClip 628 { } movieClip 631 { } movieClip 634 { } movieClip 637 { } movieClip 640 { } movieClip 643 { } movieClip 646 { } movieClip 649 { } movieClip 652 { } movieClip 655 { } movieClip 658 { } movieClip 661 { } movieClip 664 { } movieClip 667 { } movieClip 670 { } movieClip 673 { } movieClip 676 { } movieClip 679 { } movieClip 682 { } movieClip 685 { } movieClip 688 { } movieClip 691 { } movieClip 694 { } movieClip 697 { } movieClip 700 { } movieClip 703 { } movieClip 706 { } movieClip 709 { } movieClip 712 { } movieClip 715 { } movieClip 718 { } movieClip 721 { } movieClip 724 { } movieClip 727 { } movieClip 730 { } movieClip 733 { } movieClip 736 { } movieClip 739 { } movieClip 742 { } movieClip 745 { } movieClip 748 { } movieClip 751 { } movieClip 754 { } movieClip 757 { } movieClip 760 { } movieClip 763 { } movieClip 766 { } movieClip 769 { } movieClip 772 { } movieClip 775 { } movieClip 778 { } movieClip 781 { } movieClip 784 { } movieClip 787 { } movieClip 790 { } movieClip 793 { } movieClip 796 { } movieClip 799 { } movieClip 802 { } movieClip 805 { } movieClip 808 { } movieClip 811 { } movieClip 814 { } movieClip 817 { } movieClip 820 { } movieClip 823 { } movieClip 826 { } movieClip 829 { } movieClip 832 { } movieClip 835 { } movieClip 838 { } movieClip 841 { } movieClip 844 { } movieClip 847 { } movieClip 850 { } movieClip 853 { } movieClip 856 { } movieClip 859 { } movieClip 865 { } movieClip 868 { } movieClip 871 { } movieClip 874 { } movieClip 877 { } movieClip 880 { } movieClip 883 { } movieClip 886 { } movieClip 889 { } movieClip 892 { } movieClip 895 { } movieClip 898 { } movieClip 901 { } movieClip 904 { } movieClip 907 { } movieClip 910 { } movieClip 913 { } movieClip 916 { } movieClip 919 { } movieClip 922 { } movieClip 925 { } movieClip 928 { } movieClip 931 { } movieClip 934 { } movieClip 937 { } movieClip 940 { } movieClip 943 { } movieClip 946 { } movieClip 949 { } movieClip 952 { } movieClip 955 { } movieClip 958 { } movieClip 961 { } movieClip 964 { } movieClip 967 { } movieClip 970 { } movieClip 973 { } movieClip 976 { } movieClip 979 { } movieClip 982 { } movieClip 985 { } movieClip 988 { } movieClip 991 { } movieClip 994 { } movieClip 997 { } movieClip 1000 { } movieClip 1003 { } movieClip 1006 { } movieClip 1009 { } movieClip 1012 { } movieClip 1015 { } movieClip 1018 { } movieClip 1021 { } movieClip 1024 { } movieClip 1027 { } movieClip 1030 { } movieClip 1033 { } movieClip 1036 { } movieClip 1042 { } movieClip 1045 { } movieClip 1048 { } movieClip 1051 { } movieClip 1054 { } movieClip 1057 { } movieClip 1060 { } movieClip 1069 { } movieClip 1072 { } movieClip 1075 { } movieClip 1078 { } movieClip 1081 { } movieClip 1084 { } movieClip 1087 { } movieClip 1090 { } movieClip 1093 { } movieClip 1096 { } movieClip 1099 { } movieClip 1102 { } movieClip 1105 { } movieClip 1108 { } movieClip 1111 { } movieClip 1114 { } movieClip 1117 { } movieClip 1120 { } movieClip 1123 { } movieClip 1126 { } movieClip 1129 { } movieClip 1132 { } movieClip 1135 { } movieClip 1138 { } movieClip 1141 { } movieClip 1144 { } movieClip 1147 { } movieClip 1150 { } movieClip 1153 { } movieClip 1156 { } movieClip 1159 { } movieClip 1162 { } movieClip 1165 { } movieClip 1168 { } movieClip 1171 { } movieClip 1174 { } movieClip 1177 { } movieClip 1180 { } movieClip 1183 { } movieClip 1186 { } movieClip 1189 { } movieClip 1192 { } movieClip 1195 { } movieClip 1198 { } movieClip 1201 { } movieClip 1204 { } movieClip 1207 { } movieClip 1210 { } movieClip 1213 { } movieClip 1216 { } movieClip 1219 { } movieClip 1222 { } movieClip 1225 { } movieClip 1228 { } movieClip 1231 { } movieClip 1234 { } movieClip 1237 { } movieClip 1240 { } movieClip 1243 { } movieClip 1246 { } movieClip 1249 { } movieClip 1252 { } movieClip 1255 { } movieClip 1258 { } movieClip 1261 { } movieClip 1264 { } movieClip 1267 { } movieClip 1270 { } movieClip 1273 { } movieClip 1276 { } movieClip 1279 { } movieClip 1282 { } movieClip 1285 { } movieClip 1288 { } movieClip 1291 { } movieClip 1294 { } movieClip 1297 { } movieClip 1300 { } movieClip 1303 { } movieClip 1306 { } movieClip 1309 { } movieClip 1312 { } movieClip 1315 { } movieClip 1318 { } movieClip 1321 { } movieClip 1324 { } movieClip 1327 { } movieClip 1333 { } movieClip 1339 { } movieClip 1342 { } movieClip 1345 { } movieClip 1348 { } movieClip 1351 { } movieClip 1354 { } movieClip 1357 { } movieClip 1360 { } movieClip 1363 { } movieClip 1366 { } movieClip 1369 { } movieClip 1372 { } movieClip 1375 { } movieClip 1378 { } movieClip 1381 { } movieClip 1384 { } movieClip 1387 { } movieClip 1390 { } movieClip 1393 { } movieClip 1396 { } movieClip 1399 { } movieClip 1402 { } movieClip 1405 { } movieClip 1408 { } movieClip 1411 { } movieClip 1414 { } movieClip 1417 { } movieClip 1420 { } movieClip 1423 { } movieClip 1426 { } movieClip 1429 { } movieClip 1432 { } movieClip 1435 { } movieClip 1438 { } movieClip 1441 { } movieClip 1444 { } movieClip 1453 { } movieClip 1456 { } movieClip 1459 { } movieClip 1462 { } movieClip 1465 { } movieClip 1468 { } movieClip 1471 { } movieClip 1474 { } movieClip 1477 { } instance Checkbox_Anthro of movieClip 274 CheckBox { onClipEvent (construct) { label = 'Anthro'; labelPlacement = 'right'; selected = false; } } instance Checkbox_Humanized of movieClip 274 CheckBox { onClipEvent (construct) { label = 'Humanized'; labelPlacement = 'right'; selected = false; } } instance Checkbox_Creatures of movieClip 274 CheckBox { onClipEvent (construct) { label = 'Creatures'; labelPlacement = 'right'; selected = false; } } instance Init_Version of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Label'; visible = true; minHeight = 0; minWidth = 0; } } // unknown tag 88 length 129 instance Checkbox_Failsafe of movieClip 274 CheckBox { onClipEvent (construct) { label = 'Failsafe'; labelPlacement = 'right'; selected = false; } } instance Checkbox_Relaxed of movieClip 274 CheckBox { onClipEvent (construct) { label = 'Relax Mode'; labelPlacement = 'right'; selected = false; } } instance Text_Anthro of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Text_Human of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Text_Creatures of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Text_Failsafe of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Text_Relaxed of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Deutsch of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Deutsch'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_English of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'English'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Init_Start of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Start'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Bits of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Bits'; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Day of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Day: '; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Points of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Special Points:'; visible = true; minHeight = 0; minWidth = 0; } } frame 6 { function Objective_Check() { switch (Sys.Objective_Rank) { case 1: if (Sys.Objective_lvl == 1 && Sys.Bits > 299) { Objective_Complete(); } else { if (Sys.Objective_lvl == 2 && Rank_Check(2) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 3 && Rank_Check(3) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 4 && Rank_Check(3) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 5 && Rank_Check(4) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 6 && Rank_Check(4) > 3) { Objective_Complete(); } else { if (Sys.Objective_lvl == 7 && Rank_Check(5) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 8 && Rank_Check(5) > 4) { Objective_Complete(); } else { if (Sys.Objective_lvl == 9 && Rank_Check(6) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 10 && Rank_Check(6) > 4) { Objective_Complete(); } else { if (Sys.Objective_lvl == 11 && Rank_Check(6) > 8) { Objective_Complete(); } else { if (Sys.Objective_lvl == 12 && Rank_Check(6) > 11) { Objective_Complete(); } else { if (Sys.Objective_lvl == 13) { } else { Objective_failed(); } } } } } } } } } } } } } break; case 2: if (Sys.Objective_lvl == 1 && Mares.length > 1) { Objective_Complete(); } else { if (Sys.Objective_lvl == 2 && Mares.length > 3) { Objective_Complete(); } else { if (Sys.Objective_lvl == 3 && Rank_Check(2) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 4 && Rank_Check(3) > 1) { Objective_Complete(); } else { if (Sys.Objective_lvl == 5 && Rank_Check(3) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 6 && Rank_Check(4) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 7 && Rank_Check(4) > 4) { Objective_Complete(); } else { if (Sys.Objective_lvl == 8 && Rank_Check(5) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 9 && Rank_Check(6) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 10 && Rank_Check(6) > 4) { Objective_Complete(); } else { if (Sys.Objective_lvl == 11 && Rank_Check(6) > 6) { Objective_Complete(); } else { if (Sys.Objective_lvl == 12 && Rank_Check(6) > 8) { Objective_Complete(); } else { if (Sys.Objective_lvl == 13) { } else { Objective_failed(); } } } } } } } } } } } } } break; case 3: if (Sys.Objective_lvl == 1 && House.Rooms > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 2 && Mares.length > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 3 && Rank_Check(2) > 1) { Objective_Complete(); } else { if (Sys.Objective_lvl == 4 && Rank_Check(3) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 5 && Rank_Check(3) > 1) { Objective_Complete(); } else { if (Sys.Objective_lvl == 6 && Rank_Check(4) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 7 && Rank_Check(4) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 8 && Rank_Check(5) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 9 && Rank_Check(6) > 0) { Objective_Complete(); } else { if (Sys.Objective_lvl == 10 && Rank_Check(6) > 2) { Objective_Complete(); } else { if (Sys.Objective_lvl == 11 && Rank_Check(6) > 4) { Objective_Complete(); } else { if (Sys.Objective_lvl == 12 && Rank_Check(6) > 6) { Objective_Complete(); } else { if (Sys.Objective_lvl == 13) { } else { Objective_failed(); } } } } } } } } } } } } } } } function Objective_Complete() { ++Sys.Objective_lvl; Sys.Objective_Day = 25 * Sys.Objective_lvl; Sys.Objective_Points += 4 - Sys.Objective_Rank; if (Sys.English == true) { MainText.text = 'You sucessfully completed your Objective!\r\r'; MainText.text += 'Your new Objective is:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } } else { MainText.text = 'Du hast deine Aufgabe erfolgreich gelöst!\r\r'; MainText.text += 'Deine neue Aufgabe ist:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } } } function Objective_failed() { ++Sys.Objective_Rank; ++Sys.Objective_lvl; Sys.Objective_Day = 25 * Sys.Objective_lvl; if (Sys.Objective_Rank == 4 && Sys.Failsafe_Mode == false) { Eventname = 'Game Over'; gotoAndPlay(30); } if (Sys.Objective_Rank == 2) { if (Sys.English == true) { MainText.text = 'You failed your Objective. Your difficulty has been lowered to medium.\r'; } else { MainText.text = 'Du bist bei deiner Aufgabe gescheitert. Schwierigkeitsgrad wurde auf Mittel herabgesetzt.\r'; } } else { if (Sys.English == true) { MainText.text = 'You failed your Objective. Your difficulty has been lowered to easy.\r'; } else { MainText.text = 'Du bist bei deiner Aufgabe gescheitert. Schwierigkeitsgrad wurde auf Leicht herabgesetzt.\r'; } } if (Sys.English == true) { MainText.text += 'You failed your Objective. Your new Objective is:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } } else { MainText.text += 'Du bist bei deiner Aufgabe gescheitert. Deine neue Aufgabe ist:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } } } function Rank_Check(e) { RND = 0; k = 0; while (k < Mares.length) { if (eval(Mares[k] + '.Rank') > e - 1) { ++RND; } ++k; } return RND; } function Unlock_Mares() { if (Sys.Objective_Points > 11 || Sys.Relaxed_Mode == true) { Cadence.Unlocked = true; Cadence_AN.Unlocked = true; } if (Sys.Objective_Points > 17 || Sys.Relaxed_Mode == true) { Luna.Unlocked = true; Luna_AN.Unlocked = true; Luna_HU.Unlocked = true; } if (Sys.Objective_Points > 23 || Sys.Relaxed_Mode == true) { Celestia.Unlocked = true; Celestia_AN.Unlocked = true; Celestia_HU.Unlocked = true; } } function Init_Main() { Init_Header(); _root.MainText_2.depthChild0._alpha = 0; _root.MainText_2.styleSheet = styles; _root.Button_New_Day.setStyle('fontSize', 16); _root.Button_Mares.setStyle('fontSize', 16); _root.Button_Bulletin.setStyle('fontSize', 16); _root.Button_Help.setStyle('fontSize', 16); _root.Button_House.setStyle('fontSize', 16); _root.Button_Objective.setStyle('fontSize', 16); _root.Button_Save.setStyle('fontSize', 16); _root.Button_Office.setStyle('fontSize', 16); if (Sys.English == false) { _root.Button_New_Day.label = 'Neuer Tag'; _root.Button_Mares.label = 'Stuten'; _root.Button_Bulletin.label = 'Markt'; _root.Button_Help.label = 'Hilfe'; _root.Button_House.label = 'Haus'; _root.Button_Objective.label = 'Aufgaben'; _root.Button_Save.label = 'Spielstände'; _root.Button_Office.label = 'Büro'; } } Init_Main(); Clear_Bulletin_Images(); if (Sys.Tag == 0) { if (Sys.English == true) { _root.MainText_2.text = Intro_Text_EN; } else { _root.MainText_2.text = Intro_Text_DE; } } else { _root.MainText_2.text = temp + Backlog + '</b></b>'; } if (Sys.Tag != 0) { if (Sys.English == true) { MainText.text = 'The new morning is upon Ponyville and it is time for you to close your buisness for the day.'; } else { MainText.text = 'Der neue Morgen ist angebrochen und es ist für dich Zeit dein Geschäft für den Tag zu schließen.'; } } if (Sys.Tag == Sys.Objective_Day) { Objective_Check(); } if (Sys.Bits < -49999 && Sys.Failsafe_Mode == false) { Eventname = 'Game Over'; gotoAndPlay(30); } Unlock_Mares(); stop(); Button_New_Day.onRelease = function () { Label_Day.text = 'Day: ' + Sys.Tag; if (Mares.length == 0) { if (Sys.English == true) { MainText.text = 'You gotta get a Mare first!'; } else { MainText.text = 'Du musst zuerst eine Stute einstellen'; } } else { ++Sys.Tag; i = 0; Daily_Cost = 0; Daily_Profit = 0; Mistress_Cost = 0; Skip = false; Sick_Mares.splice(0); Backlog = '<p><b>'; if (Sys.English == true) { temp = '<p><b>Night Report: Day ' + Sys.Tag + '\r' + '----------------------------------------\r'; } else { temp = '<p><b>Bericht: Tag ' + Sys.Tag + '\r' + '----------------------------------------\r'; } Eventname = 'buisness'; gotoAndPlay(9); } }; Button_Bulletin.onRelease = function () { Eventname = 'Bulletin'; i = 1; gotoAndPlay(30); }; Button_Office.onRelease = function () { Eventname = 'Office'; gotoAndPlay(30); }; Button_Save.onRelease = function () { Eventname = 'Save'; i = 1; gotoAndPlay(30); }; Button_House.onRelease = function () { Eventname = 'House'; gotoAndPlay(30); }; Button_Mares.onRelease = function () { Eventname = 'Mares'; i = 1; gotoAndPlay(30); }; Button_Help.onRelease = function () { if (Sys.English == true) { _root.MainText_2.text = Helptext_EN; } else { _root.MainText_2.text = Helptext_DE; } }; Button_Objective.onRelease = function () { if (Sys.Objective_Day > 300) { if (Sys.English == true) { MainText.text = 'You have completed all objectives currently implemented. Congratulations!'; } else { MainText.text = 'Du hast alle vorhandenen Aufgaben bestanden. Glückwunsch!'; } } else { if (Sys.English == true) { MainText.text = 'Your current Objective is:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_EN[Sys.Objective_lvl - 1] + 'by day: ' + Sys.Objective_Day; } MainText.text += '\rYour current difficulty is: '; if (Sys.Objective_Rank == 1) { MainText.text += 'High. If you fail your Objective it will be lowered.'; } if (Sys.Objective_Rank == 2) { MainText.text += 'Medium. If you fail your Objective it will be lowered.'; } if (Sys.Objective_Rank == 3) { MainText.text += 'Easy. If you fail your Objective the game will be over.'; } } else { MainText.text = 'Deine aktuelle Aufgabe ist:\r'; if (Sys.Objective_Rank == 1) { MainText.text += Objective_Rank_1_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 2) { MainText.text += Objective_Rank_2_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } if (Sys.Objective_Rank == 3) { MainText.text += Objective_Rank_3_DE[Sys.Objective_lvl - 1] + 'zum Tag: ' + Sys.Objective_Day; } MainText.text += '\rDein aktueller Schwierigkeitsgrad ist: '; if (Sys.Objective_Rank == 1) { MainText.text += 'Hoch. Wenn du bei einer Aufgabe scheiterst wird er herabgesetzt.'; } if (Sys.Objective_Rank == 2) { MainText.text += 'Mittel. Wenn du bei einer Aufgabe scheiterst wird er herabgesetzt.'; } if (Sys.Objective_Rank == 3) { MainText.text += 'Leicht. Wenn du bei einer Aufgabe scheiterst wird er herabgesetzt.'; } } } }; } instance Button_Mares of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Mares'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_New_Day of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'New Day'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Bulletin of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Market'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'House'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance MainText_2 of movieClip 257 TextArea { onClipEvent (construct) { editable = false; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Help of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Help'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Objective of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Objective'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Save / Load'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Office of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Office'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 7 { function Bulletin_Stats(Mare) { Clear_Bulletin_Images(); if (Available_Mares.length > 0) { if (Pic_Mode == true) { eval('_root.IMG_' + Mare + '_Bulletin._visible') = true; } if (Sys.English == true) { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b> \r\r<p>' + 'Price: ' + eval(Mare + '.Price') + '\r' + 'Race: ' + eval(Mare + '.Race') + ' \r' + 'Age: ' + eval(Mare + '.Age') + '\r' + 'Experiance: ' + eval(Mare + '.Exp') + '\r' + 'Obediance: ' + eval(Mare + '.Obediance') + '\r' + 'Endurance: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Skill: ' + eval(Mare + '.Skill') + '\r' + 'Attraction: ' + eval(Mare + '.Attraction') + '\r' + 'Health: ' + eval(Mare + '.Health') + '\r' + 'Rank: ' + eval(Mare + '.Rank') + '\r' + 'Cost: ' + eval(Mare + '.Cost') + '\r' + 'Worth: ' + eval(Mare + '.Worth') + '\r\r'; } else { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b> \r\r<p>' + 'Preis: ' + eval(Mare + '.Price') + '\r' + 'Rasse: ' + eval(Mare + '.Race') + ' \r' + 'Alter: ' + eval(Mare + '.Age') + '\r' + 'Erfahrung: ' + eval(Mare + '.Exp') + '\r' + 'Gehorsam: ' + eval(Mare + '.Obediance') + '\r' + 'Ausdauer: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Technik: ' + eval(Mare + '.Skill') + '\r' + 'Aussehen: ' + eval(Mare + '.Attraction') + '\r' + 'Gesundheit: ' + eval(Mare + '.Health') + '\r' + 'Rang: ' + eval(Mare + '.Rank') + '\r' + 'Kosten: ' + eval(Mare + '.Cost') + '\r' + 'Wert: ' + eval(Mare + '.Worth') + '\r\r'; } } else { if (Sys.English == true) { temp_2 = '<h1><b>There are no mares for hire right now.</b></h1>'; } else { temp_2 = '<h1><b>Es sind derzeit keine weiteren Stuten mehr verfügbar.</b></h1>'; } } Label_Bulletin_Stats.text = temp_2; } function Buy_Button() { if (Sys.Bits >= eval(Mares[i - 1] + '.Price')) { Button_Bulletin_Buy.enabled = true; } else { Button_Bulletin_Buy.enabled = false; } if (eval(Available_Mares[i - 1] + '.Unlocked') == false) { if (Sys.English == true) { Label_Bulletin_Stats.text += 'Complete special Objectives to unlock ' + eval(Available_Mares[i - 1] + '.Name') + '.'; } else { Label_Bulletin_Stats.text += 'Schließe weitere Aufgaben ab um ' + eval(Available_Mares[i - 1] + '.Name') + ' freizuschalten.'; } Button_Bulletin_Buy.enabled = false; } else { Button_Bulletin_Buy.enabled = true; } } function Init_Market() { Init_Header(); _root.Label_Bulletin_Stats.styleSheet = Stat_style; _root.Label_Bulletin_Stats.depthChild0._alpha = 0; _root.Label_Bulletin_Stats.vScrollPolicy = 'off'; _root.Button_prev_Mare.setStyle('fontSize', 16); _root.Button_next_Mare.setStyle('fontSize', 16); _root.Button_Bulletin_Back.setStyle('fontSize', 16); _root.Button_Bulletin_Buy.setStyle('fontSize', 16); if (Sys.English == false) { _root.Button_prev_Mare.label = 'Vorherige'; _root.Button_next_Mare.label = 'Nächste'; _root.Button_Bulletin_Back.label = 'Zurück'; _root.Button_Bulletin_Buy.label = 'Kaufen'; } } Init_Market(); Bulletin_Stats(Available_Mares[0]); Buy_Button(); stop(); Button_prev_Mare.onRelease = function () { if (i > 1) { --i; } else { i = Available_Mares.length; } Bulletin_Stats(Available_Mares[i - 1]); Buy_Button(); }; Button_Bulletin_Back.onRelease = function () { Eventname = 'Haupt'; gotoAndPlay(30); }; Button_next_Mare.onRelease = function () { if (i < Available_Mares.length) { ++i; } else { i = 1; } Bulletin_Stats(Available_Mares[i - 1]); Buy_Button(); }; Button_Bulletin_Buy.onRelease = function () { if (eval(Available_Mares[i - 1] + '.Obtained') == false) { if (Sys.Bits >= eval(Available_Mares[i - 1] + '.Price')) { Mares.push(Available_Mares[i - 1]); eval(Available_Mares[i - 1] + '.Obtained') = true; eval(Available_Mares[i - 1] + '.Day_Bought') = Sys.Tag; Sys.Bits -= eval(Available_Mares[i - 1] + '.Price'); Refresh_Bulletin(); Available_Mares.splice(i - 1, 1); if (i > 1) { --i; } else { i = 1; } Bulletin_Stats(Available_Mares[i - 1]); _root.Label_Bits.text = 'Bits: ' + Sys.Bits; } } Buy_Button(); }; } instance Button_prev_Mare of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Previous'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Bulletin_Buy of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_next_Mare of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Bulletin_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Bulletin_Stats of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } frame 8 { function Mare_Stats(Mare) { Clear_Bulletin_Images(); if (Mares.length > 0) { if (Pic_Mode == true) { eval('_root.IMG_' + Mare + '_Bulletin._visible') = true; } if (Sys.English == true) { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Race: ' + eval(Mare + '.Race') + ' \r' + 'Age: ' + eval(Mare + '.Age') + '\r' + 'Experience: ' + eval(Mare + '.Exp') + '\r' + 'Obediance: ' + eval(Mare + '.Obediance') + '\r' + 'Endurance: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Skill: ' + eval(Mare + '.Skill') + '\r' + 'Attraction: ' + eval(Mare + '.Attraction') + '\r' + 'Health: ' + eval(Mare + '.Health') + '\r' + 'Rank: ' + eval(Mare + '.Rank') + '\r' + 'Daily-Cost: ' + eval(Mare + '.Cost') + '\r' + 'Worth: ' + eval(Mare + '.Worth') + '\r\r</p>'; if (eval(Mare + '.Work') == true) { temp_2 += eval(Mare + '.Name') + ' is currently working.\r\r'; } else { temp_2 += eval(Mare + '.Name') + ' is taking a break right now.\r\r'; } if (eval(Mare + '.Sick') > 0) { temp_2 += eval(Mare + '.Name') + ' is sick, she will be back to work in ' + eval(Mare + '.Sick') + ' Days.\r\r'; } temp_2 += '</h1>'; } else { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Rasse: ' + eval(Mare + '.Race') + ' \r' + 'Alter: ' + eval(Mare + '.Age') + '\r' + 'Erfahrung: ' + eval(Mare + '.Exp') + '\r' + 'Gehorsam: ' + eval(Mare + '.Obediance') + '\r' + 'Ausdauer: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Technik: ' + eval(Mare + '.Skill') + '\r' + 'Aussehen: ' + eval(Mare + '.Attraction') + '\r' + 'Gesundheit: ' + eval(Mare + '.Health') + '\r' + 'Rang: ' + eval(Mare + '.Rank') + '\r' + 'Tageskosten: ' + eval(Mare + '.Cost') + '\r' + 'Wert: ' + eval(Mare + '.Worth') + '\r\r</p>'; if (eval(Mare + '.Work') == true) { temp_2 += eval(Mare + '.Name') + ' arbeitet zur Zeit.\r\r'; } else { temp_2 += eval(Mare + '.Name') + ' macht gerade eine Pause.\r\r'; } if (eval(Mare + '.Sick') > 0) { temp_2 += eval(Mare + '.Name') + ' ist krank, sie wird in ' + eval(Mare + '.Sick') + ' Tagen wieder fit sein.\r\r'; } temp_2 += '</h1>'; } } else { if (Sys.English == true) { Label_Bulletin_Stats.text = '<b>You have no mares working for you.</b></h1>'; } else { Label_Bulletin_Stats.text = '<b>Es arbeitet zur Zeit noch niemand für dich.</b></h1>'; } } Label_Bulletin_Stats.text = temp_2; } function Vacancy() { if (Mares.length == 0) { Button_Mares_Work.enabled = false; Button_Mares_prev.enabled = false; Button_Mares_next.enabled = false; Button_Mares_Promotion.enabled = false; Button_Mares_Sell.enabled = false; } else { Button_Mares_Work.enabled = true; Button_Mares_prev.enabled = true; Button_Mares_next.enabled = true; Button_Mares_Promotion.enabled = true; if (eval(Mares[i - 1] + '.Work') == true) { Button_Mares_Work.enabled = true; Button_Mares_Sell.enabled = false; if (Sys.English == true) { Button_Mares_Work.label = 'Take Break'; } else { Button_Mares_Work.label = 'Pause machen'; } } else { Button_Mares_Sell.enabled = true; if (House.Rooms > House_Mares.length) { Button_Mares_Work.enabled = true; if (Sys.English == true) { Button_Mares_Work.label = 'Work'; } else { Button_Mares_Work.label = 'Arbeiten'; } } else { Button_Mares_Work.enabled = false; if (Sys.English == true) { Button_Mares_Work.label = 'No free Rooms'; } else { Button_Mares_Work.label = 'Kein freier Raum'; } } } } if (eval(Mares[i - 1] + '.Rank') > 5) { Button_Mares_Promotion.enabled = false; } } function Init_Mares() { Init_Header(); _root.Label_Bulletin_Stats.depthChild0._alpha = 0; _root.Label_Bulletin_Stats.styleSheet = Stat_style; Button_Mares_prev.setStyle('fontSize', 16); Button_Bulletin_Back.setStyle('fontSize', 16); Button_Mares_next.setStyle('fontSize', 16); Button_Mares_Work.setStyle('fontSize', 16); Button_Mares_Promotion.setStyle('fontSize', 16); Button_Mares_Sell.setStyle('fontSize', 16); if (Sys.English == false) { Button_Mares_prev.label = 'Vorherige'; Button_Bulletin_Back.label = 'Zurück'; Button_Mares_Sell.label = 'Verkaufen'; Button_Mares_next.label = 'Nächste'; Button_Mares_Work.label = 'Arbeiten'; Button_Mares_Promotion.label = 'Befördern'; } } function Mare_Price() { RND = 0; RND += eval(Mares[i - 1] + '.Worth'); RND += eval(Mares[i - 1] + '.Charisma'); RND += eval(Mares[i - 1] + '.Endurance'); RND += eval(Mares[i - 1] + '.Attraction'); RND += eval(Mares[i - 1] + '.Skill'); RND += eval(Mares[i - 1] + '.Obediance'); RND *= 166.67; --RND; return Math.floor(RND); } Init_Mares(); Clear_Bulletin_Images(); Mare_Stats(Mares[i - 1]); Vacancy(); stop(); Button_Mares_Promotion.onRelease = function () { Eventname = 'Promotion'; Promo_Temp.Endurance = eval(Mares[i - 1] + '.Endurance'); Promo_Temp.Obediance = eval(Mares[i - 1] + '.Obediance'); Promo_Temp.Worth = eval(Mares[i - 1] + '.Worth'); Promo_Temp.Attraction = eval(Mares[i - 1] + '.Attraction'); Promo_Temp.Skill = eval(Mares[i - 1] + '.Skill'); Promo_Temp.Charisma = eval(Mares[i - 1] + '.Charisma'); Promo_Temp.Exp = eval(Mares[i - 1] + '.Exp'); gotoAndPlay(30); }; Button_Mares_prev.onRelease = function () { if (i > 1) { --i; } else { i = Mares.length; } Mare_Stats(Mares[i - 1]); Vacancy(); }; Button_Bulletin_Back.onRelease = function () { Eventname = 'Haupt'; gotoAndPlay(30); }; Button_Mares_Sell.onRelease = function () { if (Button_Mares_Sell.label == 'Sell' || Button_Mares_Sell.label == 'Verkaufen') { RND = Mare_Price(); RND = Math.floor(RND / 150); if (Sys.English == true) { Button_Mares_Sell.label = 'Confirm'; Label_Bulletin_Stats.text = 'Do you really want to sell ' + eval(Mares[i - 1] + '.Name') + '? ' + 'You will need to pay a lot more to re hire her once you sold her off. If you are sure then ' + 'please confirm.\r\rA buyer offers you ' + eval(Mares[i - 1] + '.Price') + ' Bits for her.'; } else { Button_Mares_Sell.label = 'Bestätigen'; Label_Bulletin_Stats.text = 'Bist du dir sicher dass du ' + eval(Mares[i - 1] + '.Name') + ' verkaufen willst? ' + 'Wenn du sie einmal verkauft hast wird sie einen deutlich höheren Preis verlangen wenn du sie wieder ' + 'zurückkaufen willst. Wenn du dir trotzdem sicher bist dann bestätige deine Wahl.\r\r ' + 'Ein anonymer Käufer bietet dir ' + eval(Mares[i - 1] + '.Price') + ' Bits für sie.'; } } else { if (Button_Mares_Sell.label == 'Confirm' || Button_Mares_Sell.label == 'Bestätigen') { if (Sys.English == true) { Button_Mares_Sell.label = 'Sell'; Label_Bulletin_Stats.text = 'You sold ' + eval(Mares[i - 1] + '.Name') + 'for ' + eval(Mares[i - 1] + '.Price') + 'Bits. ' + 'She is quite upset and will demand a lot more to work for you again. She has been added back to ' + 'the market'; } else { Button_Mares_Sell.label = 'Verkaufen'; Label_Bulletin_Stats.text = 'Du hast ' + eval(Mares[i - 1] + '.Name') + ' für ' + eval(Mares[i - 1] + '.Price') + ' Btis verkauft. ' + 'Sie ist ziemlich sauer darüber und wird eine Menge mehr Geld verlangen wenn du sie wieder einmal ' + 'einstellen willst. Sie wurde wieder zum Markt hinzugefügt.\r\r '; } RND = Mare_Price(); Sys.Bits += eval(Mares[i - 1] + '.Price'); eval(Mares[i - 1] + '.Price') = RND; eval(Mares[i - 1] + '.Obtained') = false; Available_Mares.push(Mares[i - 1]); Mares.splice(i - 1, 1); Init_Header(); Mare_Stats(Mares[i - 1]); Vacancy(); } } }; Button_Mares_next.onRelease = function () { if (i <= Mares.length - 1) { ++i; } else { i = 1; } Mare_Stats(Mares[i - 1]); Vacancy(); }; Button_Mares_Work.onRelease = function () { if (eval(Mares[i - 1] + '.Work') == true) { eval(Mares[i - 1] + '.Work') = false; j = 0; while (j < House_Mares.length) { if (House_Mares[j] == Mares[i - 1]) { House_Mares.splice(j, 1); } ++j; } } else { eval(Mares[i - 1] + '.Work') = true; House_Mares.push(Mares[i - 1]); } Mare_Stats(Mares[i - 1]); Vacancy(); }; } instance Button_Mares_prev of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Previous'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Mares_next of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Bulletin_Stats of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Mares_Work of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Work'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Mares_Promotion of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Promotion'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Mares_Sell of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Sell'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 9 { function Special_Calc() { if (Special_Mare == 'Tentakel') { Temps.Exp = 100 * eval(Mares[i] + '.Rank'); Temps.Health = 15; } else { Temps.Exp = Rand(10, 25); Temps.Exp = Temps.Exp * eval(Mares[i] + '.Rank') * (1 + eval(Mares[i] + '.Worth') / 100); ++Temps.Exp; Temps.Exp = Math.floor(Temps.Exp * 2); Temps.Health = 10; } eval(Mares[i] + '.Exp') += Temps.Exp; eval(Mares[i] + '.Health') -= Temps.Health; if (Sys.English == true) { MainText_Buisness.text = 'A customer has requested a special Event for ' + eval(Mares[i] + '.Name') + '.\r' + 'Even though she is not completly convinced, she does comply. \r' + 'She received: ' + Temps.Bits + ' Bits from the customer. \r' + 'She gained: ' + Temps.Exp + ' Experiance and lost ' + Temps.Health + ' Health.'; } else { MainText_Buisness.text = 'Ein Kunde hat einen speziellen Wunsch für ' + eval(Mares[i] + '.Name') + '.\r' + 'Auch wenn sie nicht vollends überzeugt ist stimmt sie zu. \r' + 'Sie erhält: ' + Temps.Bits + ' Bits von dem Kunden. \r' + 'Sie hat: ' + Temps.Exp + ' Erfahrung gewonnen und ' + Temps.Health + ' Gesundheit verloren.'; } } function Special_Event() { if (eval(Mares[i] + '.Special_Number') > 0) { if (Rand(0, 100) > 95 - eval(Mares[i] + '.Special_Number') * 3) { Special = true; RND = Rand(0, eval(Mares[i] + '.Special_Number')); if (RND > 0) { --RND; } Special_Mare = this[Mares[i]].Special[RND]; if (Special_Mare != 'Tentakel') { if (eval(Special_Mare + '.Obtained') == false) { Special = false; } } } else { Special = false; } } } function Got_Sick() { if (eval(Mares[i] + '.Health') < 1) { eval(Mares[i] + '.Health') = 0; eval(Mares[i] + '.Sick') = 5; if (Sys.English == true) { Sick_Mares.push('\r' + eval(Mares[i] + '.Name') + ' got sick. She won\'t be able to work for 5 days.\r'); } else { Sick_Mares.push('\r' + eval(Mares[i] + '.Name') + ' wurde krank. Sie wird für 5 Tage nicht arbeiten können.\r'); } } } function Picture() { if (NSFW == true) { if (Special == true) { Current_Pic.Name = Mares[i] + '_NSFW_' + Special_Mare; Button_Artist.label = 'Artist: ' + eval(Mares[i] + '_NSFW_' + Special_Mare + '.Artist'); Button_Artist.visible = true; eval('IMG_' + Current_Pic.Name + '._visible') = true; if (eval(Current_Pic.Name + '.Unlocked') == false) { ++Sys.Unlocked_Pics; } eval(Current_Pic.Name + '.Unlocked') = true; } else { RND = Rand(1, 3); Current_Pic.Name = Mares[i] + '_NSFW_' + RND; Button_Artist.label = 'Artist: ' + eval(Mares[i] + '_NSFW_' + RND + '.Artist'); Button_Artist.visible = true; if (eval(Current_Pic.Name + '.Unlocked') == false) { ++Sys.Unlocked_Pics; } eval('IMG_' + Current_Pic.Name + '._visible') = true; eval(Current_Pic.Name + '.Unlocked') = true; } } } function BitsCalc() { Customers = 1 + Math.floor(eval(Mares[i] + '.Attraction') / 25); Max_Customers = 1 + Math.floor(eval(Mares[i] + '.Skill') / 25); if (Max_Customers > Math.floor(eval(Mares[i] + '.Health') / 25)) { Max_Customers = Math.floor(eval(Mares[i] + '.Health') / 25) + 1; } if (Customers > Max_Customers) { Customers = Max_Customers; } if (Mares[i] == 'Celestia' || Mares[i] == 'Celestia_AN' || Mares[i] == 'Celestia_HU') { Customers = 10; } k = 0; RND = 0; Temps.Bits = 0; while (k < Customers) { RND = (eval(Mares[i] + '.Worth') + Rand(3, 7)) * eval(Mares[i] + '.Rank'); RND *= 1 + eval(Mares[i] + '.Charisma') / 100; Temps.Bits += RND; ++k; } Temps.Bits = Math.floor(Temps.Bits); if (Special == true) { Temps.Bits = Math.floor(Temps.Bits * 1.2); } eval(Mares[i] + '.Bits_Earned') += Temps.Bits; Daily_Profit += Temps.Bits; } function ExpCalc() { Temps.Exp = Rand(10, 25); Temps.Exp = Temps.Exp * eval(Mares[i] + '.Rank') * (1 + eval(Mares[i] + '.Worth') / 100); ++Temps.Exp; if (House.Teacher == true) { Temps.Exp *= 1.5; } Temps.Exp = Math.floor(Temps.Exp); eval(Mares[i] + '.Exp') += Temps.Exp; } function HealthCalc() { Temps.Health = Rand(5, 15); Temps.Health /= 1 + eval(Mares[i] + '.Endurance') / 100; Temps.Health = Math.floor(Temps.Health); if (House.Nurse == true) { Temps.Health = Math.round(Temps.Health / 2); } if (House.Doctor == true) { Temps.Health -= 5; } if (eval(Mares[i] + '.Health') - Temps.Health > 100) { eval(Mares[i] + '.Health') = 100; } else { eval(Mares[i] + '.Health') -= Temps.Health; } } function Take_Break() { eval(Mares[i] + '.Days_Break') += 1; RND = Rand(15, 35); if (eval(Mares[i] + '.Health') == 100) { _root.IMG_Sleep._visible = true; if (Sys.English == true) { Backlog += Temps.Name + ' took a break but is already at full Health.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' took a break but is already at full Health.\r'; } else { Backlog += Temps.Name + ' hat heute eine Pause eingelegt. Sie ist bereits bei voller Gesundheit.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' hat heute eine Pause eingelegt. Sie ist bereits bei voller Gesundheit.\r'; } } else { _root.IMG_Sleep._visible = true; eval(Mares[i] + '.Health') += RND; if (eval(Mares[i] + '.Health') > 100) { eval(Mares[i] + '.Health') = 100; } if (Sys.English == true) { Backlog += Temps.Name + ' took a break and regained ' + RND + ' Health.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' took a break today and regained ' + RND + ' Health.\r'; } else { Backlog += Temps.Name + ' hat eine Pause gemacht und ' + RND + ' Gesundheit regeneriert.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' hat eine Pause gemacht und ' + RND + ' Gesundheit regeneriert.\r'; } } } function Next() { Clear_NSFW(); if (i + 1 == Mares.length) { Backlog += '----------------------------------------\r'; Eventname = 'Haupt'; if (Sys.English == true) { temp += 'Your total upkeep is ' + Daily_Cost + ' Bits.\r'; if (House.Nurse == true) { temp += 'Your Nurse demands ' + Math.round(Daily_Profit * 0.1) + ' Bits for her work.\r'; Daily_Profit = Math.round(Daily_Profit * 0.9); } if (House.Teacher == true) { temp += 'Your Teacher demands ' + Math.round(Daily_Profit * 0.15) + ' Bits for his work.\r'; Daily_Profit = Math.round(Daily_Profit * 0.85); } if (House.Mistress == true) { temp += 'Your Mistress demands ' + Mistress_Cost + ' Bits for her work.\r'; Daily_Profit -= Mistress_Cost; } if (House.Doctor == true) { temp += 'Your Doctor demands ' + Math.round(Daily_Profit * 0.35) + ' Bits for his work.\r'; Daily_Profit = Math.round(Daily_Profit * 0.65); } temp += 'Your total income, minus upkeep is ' + (Daily_Profit - Daily_Cost) + ' Bits.'; temp += Sick_Mares; } else { temp += 'Deine Lohnkosten betragen: ' + Daily_Cost + ' Bits.\r'; if (House.Nurse == true) { temp += 'Deine Krankenschwester verlangt ' + Math.round(Daily_Profit * 0.1) + ' Bits für ihre Arbeit.\r'; Daily_Profit = Math.round(Daily_Profit * 0.9); } if (House.Teacher == true) { temp += 'Dein Lehrer verlangt ' + Math.round(Daily_Profit * 0.15) + ' Bits für seine Arbeit.\r'; Daily_Profit = Math.round(Daily_Profit * 0.85); } if (House.Mistress == true) { temp += 'Deine Domina verlangt ' + Mistress_Cost + ' Bits für ihre Arbeit.\r'; Daily_Profit -= Mistress_Cost; } if (House.Doctor == true) { temp += 'Dein Doktor verlangt ' + Math.round(Daily_Profit * 0.35) + ' Bits für seine Arbeit.\r'; Daily_Profit = Math.round(Daily_Profit * 0.65); } temp += 'Deine heutiger Reingewinn beträgt ' + (Daily_Profit - Daily_Cost) + ' Bits.'; temp += Sick_Mares; } temp += '\r----------------------------------------</b></p>'; Sys.Bits += Daily_Profit; Sys.Bits -= Daily_Cost; gotoAndPlay(30); } else { ++i; gotoAndPlay(30); } } function Show_MainText() { if (Sys.English == true) { MainText_Buisness.text = '' + eval(Mares[i] + '.Name') + ' is working her shift.\r' + 'She got ' + Customers + ' customer who paid her ' + Temps.Bits + ' Bits for her service.\r' + 'She gained ' + Temps.Exp + ' Experience this night.\r' + 'She lost ' + Temps.Health + ' Health.'; } else { MainText_Buisness.text = '' + eval(Mares[i] + '.Name') + ' hat ihre Schicht abgearbeitet.\r' + 'Sie wurde von ' + Customers + ' Hengsten besucht die ihr ' + Temps.Bits + ' Bits bezahlten.\r' + 'Sie hat ' + Temps.Exp + ' Erfahrung gewonnen.\r' + 'Sie hat ' + Temps.Health + ' Gesundheit verloren.'; } } function Disobey() { _root.IMG_Sleep._visible = true; if (Sys.English == true) { MainText_Buisness.text = '' + eval(Mares[i] + '.Name') + ' refused to work today.\r'; Backlog += eval(Mares[i] + '.Name') + ' refused to work today.\r'; } else { MainText_Buisness.text = '' + eval(Mares[i] + '.Name') + ' weigerte sich heute zu arbeiten.\r'; Backlog += Temps.Name + ' weigerte sich heute zu arbeiten.\r'; } eval(Mares[i] + '.Times_Refused') += 1; } function Domina() { if (eval(Mares[i] + '.Obediance') < 100 && House.Mistress == true) { eval(Mares[i] + '.Obediance') += 1; Mistress_Cost += 100; } } function Name_Space() { Temps.Name = eval(Mares[i] + '.Name'); l = Temps.Name.length; while (l < 22) { Temps.Name += ' '; ++l; } } function Sick() { if (eval(Mares[i] + '.Sick') >= 0) { _root.IMG_Hospital._visible = true; eval(Mares[i] + '.Days_Sick') += 1; if (Sys.English == true) { Backlog += Temps.Name + ' is still out for ' + eval(Mares[i] + '.Sick') + ' Days due to sickness.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' is still out for ' + eval(Mares[i] + '.Sick') + ' Days due to sickness.\r'; } else { Backlog += Temps.Name + ' ist noch für ' + eval(Mares[i] + '.Sick') + ' Tage krankgeschrieben.\r'; MainText_Buisness.text = eval(Mares[i] + '.Name') + ' ist noch für ' + eval(Mares[i] + '.Sick') + ' Tage krankgeschrieben.\r'; } eval(Mares[i] + '.Sick') -= 1; eval(Mares[i] + '.Health') += 20; } } function Init_Work() { Init_Header(); _root.MainText_Buisness.depthChild0._alpha = 0; _root.MainText_Buisness.setStyle('fontSize', 14); _root.MainText_Buisness.setStyle('textAlign', 'justify'); _root.Button_Buisness_Next.setStyle('fontSize', 16); _root.Button_Buisness_Skip.setStyle('fontSize', 16); _root.Mare_List.styleSheet = Stat_style; if (Sys.English == false) { _root.Button_Buisness_Next.label = 'Nächste'; _root.Button_Buisness_Skip.label = 'Überspringen'; } } Init_Work(); Domina(); Name_Space(); j = 0; Mare_List.text = '<h3>Mare List: \r\r'; while (j < Mares.length) { if (j == i) { Mare_List.text += '<b>' + eval(Mares[j] + '.Name') + '</b>\r'; } else { Mare_List.text += eval(Mares[j] + '.Name') + '\r'; } ++j; } Mare_List.text += '</h3>'; Daily_Cost += eval(Mares[i] + '.Cost'); eval(Mares[i] + '.Total_Cost') += eval(Mares[i] + '.Cost'); if (Sys.Tag > 29) { Special_Event(); } if (eval(Mares[i] + '.Sick') == 0) { if (eval(Mares[i] + '.Work') == true) { if (eval(Mares[i] + '.Obediance') > Rand(0, 99)) { BitsCalc(); if (Special == false) { HealthCalc(); ExpCalc(); Show_MainText(); } else { Special_Calc(); } Backlog += Temps.Name + ' Bits: ' + leadingZero(Temps.Bits) + ' Exp: ' + leadingZero(Temps.Exp) + ' HP: ' + eval(Mares[i] + '.Health') + '\r'; Picture(Mares[i]); } else { Disobey(); } } else { Take_Break(); } } else { Sick(); } Got_Sick(); if (Skip == false) { stop(); } else { Next(); } Button_Buisness_Skip.onRelease = function () { Skip = true; Next(); }; Button_Buisness_Next.onRelease = function () { Next(); }; Button_Artist.onRelease = function () { temp_2 = eval(Current_Pic.Name + '.Link'); getURL(temp_2, '_blank'); }; } instance Button_Buisness_Next of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Artist of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Artist:'; labelPlacement = 'left'; selected = false; toggle = false; enabled = true; visible = false; minHeight = 0; minWidth = 0; } } instance Mare_List of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = ''; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Buisness_Skip of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Skip'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 10 { function Promotion_Labels_Refresh() { if (Sys.English == true) { Label_Promotion_Endurance.text = 'Endurance: ' + Promo_Temp.Endurance + ' EXP'; Label_Promotion_Obediance.text = 'Obediance: ' + Promo_Temp.Obediance + ' EXP'; Label_Promotion_Worth.text = 'Worth: ' + Promo_Temp.Worth + ' EXP'; Label_Promotion_Skill.text = 'Skill: ' + Promo_Temp.Skill + ' EXP'; Label_Promotion_Charisma.text = 'Charisma: ' + Promo_Temp.Charisma + ' EXP'; Label_Promotion_Attraction.text = 'Attraction: ' + Promo_Temp.Attraction + ' EXP'; } else { Label_Promotion_Endurance.text = 'Ausdauer: ' + Promo_Temp.Endurance + ' EXP'; Label_Promotion_Obediance.text = 'Gehorsam: ' + Promo_Temp.Obediance + ' EXP'; Label_Promotion_Worth.text = 'Wert: ' + Promo_Temp.Worth + ' EXP'; Label_Promotion_Skill.text = 'Technik: ' + Promo_Temp.Skill + ' EXP'; Label_Promotion_Charisma.text = 'Charisma: ' + Promo_Temp.Charisma + ' EXP'; Label_Promotion_Attraction.text = 'Aussehen: ' + Promo_Temp.Attraction + ' EXP'; } } function Mare_Stats_promo(Mare) { Clear_Bulletin_Images(); if (Mares.length > 0) { if (Pic_Mode == true) { eval('_root.IMG_' + Mare + '_Bulletin._visible') = true; } if (Sys.English == true) { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Race: ' + eval(Mare + '.Race') + ' \r' + 'Age: ' + eval(Mare + '.Age') + '\r' + 'Experiance: ' + Promo_Temp.Exp + '\r' + 'Obediance: ' + eval(Mare + '.Obediance') + '\r' + 'Endurance: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Skill: ' + eval(Mare + '.Skill') + '\r' + 'Attraction: ' + eval(Mare + '.Attraction') + '\r' + 'Health: ' + eval(Mare + '.Health') + '\r' + 'Rank: ' + eval(Mare + '.Rank') + '\r' + 'Cost: ' + eval(Mare + '.Cost') + '\r' + 'Worth: ' + eval(Mare + '.Worth') + '\r\r</p>'; if (eval(Mare + '.Work') == true) { temp_2 += eval(Mare + '.Name') + ' is currently working.\r\r'; } else { temp_2 += eval(Mare + '.Name') + ' is taking a break right now.\r\r'; } if (eval(Mare + '.Sick') > 0) { temp_2 += eval(Mare + '.Name') + ' is sick, she will be back to work in ' + eval(Mare + '.Sick') + ' Days.\r\r'; } temp_2 += '</h1>'; } else { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Rasse: ' + eval(Mare + '.Race') + ' \r' + 'Alter: ' + eval(Mare + '.Age') + '\r' + 'Erfahrung: ' + Promo_Temp.Exp + '\r' + 'Gehorsam: ' + eval(Mare + '.Obediance') + '\r' + 'Ausdauer: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Technik: ' + eval(Mare + '.Skill') + '\r' + 'Aussehen: ' + eval(Mare + '.Attraction') + '\r' + 'Gesundheit: ' + eval(Mare + '.Health') + '\r' + 'Rang: ' + eval(Mare + '.Rank') + '\r' + 'Kosten: ' + eval(Mare + '.Cost') + '\r' + 'Wert: ' + eval(Mare + '.Worth') + '\r\r</p>'; if (eval(Mare + '.Work') == true) { temp_2 += eval(Mare + '.Name') + ' arbeitet derzeit.\r\r'; } else { temp_2 += eval(Mare + '.Name') + ' macht gerade Pause.\r\r'; } if (eval(Mare + '.Sick') > 0) { temp_2 += eval(Mare + '.Name') + ' ist noch für ' + eval(Mare + '.Sick') + ' Tage krankgeschrieben.\r\r'; } temp_2 += '</h1>'; } } Label_Bulletin_Stats.text = temp_2 + '</h1>'; } function Init_Promotion() { Init_Header(); _root.Label_Bulletin_Stats.depthChild0._alpha = 0; _root.Label_Bulletin_Stats.styleSheet = Stat_style; Label_Promotion_Endurance.setStyle('fontSize', 16); Label_Promotion_Obediance.setStyle('fontSize', 16); Label_Promotion_Worth.setStyle('fontSize', 16); Label_Promotion_Charisma.setStyle('fontSize', 16); Label_Promotion_Skill.setStyle('fontSize', 16); Label_Promotion_Attraction.setStyle('fontSize', 16); Button_Promotion_Back.setStyle('fontSize', 16); Button_Promotion_Reset.setStyle('fontSize', 16); Button_Promotion_Go.setStyle('fontSize', 16); if (Sys.English == false) { Label_Promotion_Endurance.label = 'Ausdauer'; Label_Promotion_Obediance.label = 'Gehorsam'; Label_Promotion_Worth.label = 'Wert'; Label_Promotion_Skill.label = 'Technik'; Label_Promotion_Attraction.label = 'Aussehen'; Button_Promotion_Back.label = 'Zurück'; Button_Promotion_Go.label = 'Befördern'; } } Init_Promotion(); Clear_Bulletin_Images(); Mare_Stats_promo(Mares[i - 1]); Promotion_Labels_Refresh(); stop(); Button_Promotion_Back.onRelease = function () { Eventname = 'Mares'; gotoAndPlay(30); }; Button_Promotion_Reset.onRelease = function () { Promo_Temp.Endurance = eval(Mares[i - 1] + '.Endurance'); Promo_Temp.Obediance = eval(Mares[i - 1] + '.Obediance'); Promo_Temp.Worth = eval(Mares[i - 1] + '.Worth'); Promo_Temp.Attraction = eval(Mares[i - 1] + '.Attraction'); Promo_Temp.Skill = eval(Mares[i - 1] + '.Skill'); Promo_Temp.Charisma = eval(Mares[i - 1] + '.Charisma'); Promo_Temp.Exp = eval(Mares[i - 1] + '.Exp'); Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); }; Button_Promotion_Go.onRelease = function () { eval(Mares[i - 1] + '.Endurance') = Promo_Temp.Endurance; eval(Mares[i - 1] + '.Obediance') = Promo_Temp.Obediance; eval(Mares[i - 1] + '.Worth') = Promo_Temp.Worth; eval(Mares[i - 1] + '.Skill') = Promo_Temp.Skill; eval(Mares[i - 1] + '.Attraction') = Promo_Temp.Attraction; eval(Mares[i - 1] + '.Charisma') = Promo_Temp.Charisma; eval(Mares[i - 1] + '.Exp') = Promo_Temp.Exp; Promo_Temp.Rank = eval(Mares[i - 1] + '.Endurance'); Promo_Temp.Rank += eval(Mares[i - 1] + '.Obediance'); Promo_Temp.Rank += eval(Mares[i - 1] + '.Worth'); Promo_Temp.Rank += eval(Mares[i - 1] + '.Skill'); Promo_Temp.Rank += eval(Mares[i - 1] + '.Attraction'); Promo_Temp.Rank += eval(Mares[i - 1] + '.Charisma'); Promo_Temp.Rank = Math.floor(Promo_Temp.Rank / 100); eval(Mares[i - 1] + '.Rank') = Promo_Temp.Rank; Promo_Temp.Cost = eval(Mares[i - 1] + '.Worth') * eval(Mares[i - 1] + '.Rank') * 0.75; Promo_Temp.Cost *= (eval(Mares[i - 1] + '.Skill') + eval(Mares[i - 1] + '.Attraction')) / 50; eval(Mares[i - 1] + '.Cost') = Math.floor(Promo_Temp.Cost + eval(Mares[i - 1] + '.Base_Cost')); Eventname = 'Mares'; gotoAndPlay(30); }; Up_Button_Endurance.onRelease = function () { if (eval(Mares[i - 1] + '.Endurance') < 100 && Promo_Temp.Endurance < 100) { if (Promo_Temp.Exp >= Promo_Temp.Endurance) { Promo_Temp.Exp -= Promo_Temp.Endurance; ++Promo_Temp.Endurance; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Endurance.onRelease = function () { if (eval(Mares[i - 1] + '.Endurance') < 100 && Promo_Temp.Endurance < 100) { if (Promo_Temp.Exp >= Promo_Temp.Endurance) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Endurance && Promo_Temp.Endurance < 100)) break; Promo_Temp.Exp -= Promo_Temp.Endurance; ++Promo_Temp.Endurance; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Up_Button_Obediance.onRelease = function () { if (eval(Mares[i - 1] + '.Obediance') < 100 && Promo_Temp.Obediance < 100) { if (Promo_Temp.Exp >= Promo_Temp.Obediance) { Promo_Temp.Exp -= Promo_Temp.Obediance; ++Promo_Temp.Obediance; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Obediance.onRelease = function () { if (eval(Mares[i - 1] + '.Obediance') < 100 && Promo_Temp.Obediance < 100) { if (Promo_Temp.Exp >= Promo_Temp.Obediance) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Obediance && Promo_Temp.Obediance < 100)) break; Promo_Temp.Exp -= Promo_Temp.Obediance; ++Promo_Temp.Obediance; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Up_Button_Worth.onRelease = function () { if (eval(Mares[i - 1] + '.Worth') < 100 && Promo_Temp.Worth < 100) { if (Promo_Temp.Exp >= Promo_Temp.Worth) { Promo_Temp.Exp -= Promo_Temp.Worth; ++Promo_Temp.Worth; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Worth.onRelease = function () { if (eval(Mares[i - 1] + '.Worth') < 100 && Promo_Temp.Worth < 100) { if (Promo_Temp.Exp >= Promo_Temp.Worth) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Worth && Promo_Temp.Worth < 100)) break; Promo_Temp.Exp -= Promo_Temp.Worth; ++Promo_Temp.Worth; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Up_Button_Skill.onRelease = function () { if (eval(Mares[i - 1] + '.Skill') < 100 && Promo_Temp.Skill < 100) { if (Promo_Temp.Exp >= Promo_Temp.Skill) { Promo_Temp.Exp -= Promo_Temp.Skill; ++Promo_Temp.Skill; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Skill.onRelease = function () { if (eval(Mares[i - 1] + '.Skill') < 100 && Promo_Temp.Skill < 100) { if (Promo_Temp.Exp >= Promo_Temp.Skill) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Skill && Promo_Temp.Skill < 100)) break; Promo_Temp.Exp -= Promo_Temp.Skill; ++Promo_Temp.Skill; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Up_Button_Charisma.onRelease = function () { if (eval(Mares[i - 1] + '.Charisma') < 100 && Promo_Temp.Charisma < 100) { if (Promo_Temp.Exp >= Promo_Temp.Charisma) { Promo_Temp.Exp -= Promo_Temp.Charisma; ++Promo_Temp.Charisma; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Charisma.onRelease = function () { if (eval(Mares[i - 1] + '.Charisma') < 100 && Promo_Temp.Charisma < 100) { if (Promo_Temp.Exp >= Promo_Temp.Charisma) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Charisma && Promo_Temp.Charisma < 100)) break; Promo_Temp.Exp -= Promo_Temp.Charisma; ++Promo_Temp.Charisma; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Up_Button_Attraction.onRelease = function () { if (eval(Mares[i - 1] + '.Attraction') < 100 && Promo_Temp.Attraction < 100) { if (Promo_Temp.Exp >= Promo_Temp.Attraction) { Promo_Temp.Exp -= Promo_Temp.Attraction; ++Promo_Temp.Attraction; Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; Max_Button_Attraction.onRelease = function () { if (eval(Mares[i - 1] + '.Attraction') < 100 && Promo_Temp.Attraction < 100) { if (Promo_Temp.Exp >= Promo_Temp.Attraction) { for (;;) { if (!(Promo_Temp.Exp >= Promo_Temp.Attraction && Promo_Temp.Attraction < 100)) break; Promo_Temp.Exp -= Promo_Temp.Attraction; ++Promo_Temp.Attraction; } Promotion_Labels_Refresh(); Mare_Stats_promo(Mares[i - 1]); } } }; } instance Button_Promotion_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Bulletin_Stats of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Promotion_Go of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Promote'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Obediance of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Obediance'; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Endurance of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Endurance'; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Worth of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Worth'; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Promotion_Reset of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Reset'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Charisma of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Charisma'; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Skill of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Skill'; visible = true; minHeight = 0; minWidth = 0; } } instance Label_Promotion_Attraction of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = 'Attraction'; visible = true; minHeight = 0; minWidth = 0; } } frame 11 { function House_Main_Text() { if (Sys.English == true) { MainText_House_2.text = '<h1>\r\rYour house is located not far from the town square. Hidden in a back alley it is easy enough to find but still offers a sense of secrecy for your customers as well as employees. \r\rYour house currently has ' + House.Rooms + ' Rooms for your mares to work.\r\r' + 'Expanding your house for one additional room would cost you ' + int(House.Price[House.Rooms]) + ' Bits.\r\r' + 'Rooms:\r\r'; } else { MainText_House_2.text = '<h1>\r\rDein Haus ist nicht weit vom Stadtplatz entfernt. Versteckt in einer Seitengasse ist es leicht genug zu finden, bietet aber deinen Kunden und Angestellten dennoch genug Abgeschiedenheit.. \r\rDein Haus hat ' + House.Rooms + ' Zimmer die für deine Stuten bereit stehen.\r\r' + 'Dein Haus um einen Raum zu erweitern würde dich ' + int(House.Price[House.Rooms]) + ' Bits kosten.\r\r' + 'Rooms:\r\r'; } i = 0; while (i < House.Rooms) { if (House_Mares.length > i) { if (eval(House_Mares[i] + '.Name') != undefined) { if (Sys.English == true) { MainText_House_2.text += 'Room ' + (i + 1) + ': ' + eval(House_Mares[i] + '.Name') + '\r'; } else { MainText_House_2.text += 'Zimmer ' + (i + 1) + ': ' + eval(House_Mares[i] + '.Name') + '\r'; } } else { if (Sys.English == true) { MainText_House_2.text += 'Room ' + (i + 1) + ': ' + House_Mares[i] + '\r'; } else { MainText_House_2.text += 'Zimmer ' + (i + 1) + ': ' + House_Mares[i] + '\r'; } } } else { if (Sys.English == true) { MainText_House_2.text += 'Room ' + (i + 1) + ': Vacant\r'; } else { MainText_House_2.text += 'Zimmer ' + (i + 1) + ': Leer\r'; } } ++i; } MainText_House_2.text += '\r'; if (House.Nurse_Bought == false) { if (Sys.English == true) { MainText_House_2.text += 'You can hire a Nurse for ' + House.Nurse_Price + ' Bits.\r'; } else { MainText_House_2.text += 'Du kannst eine Krankenschwester für ' + House.Nurse_Price + ' Bits einstellen.\r'; } } if (House.Mistress_Bought == false) { if (Sys.English == true) { MainText_House_2.text += 'You can hire a Mistress for ' + House.Mistress_Price + ' Bits.\r'; } else { MainText_House_2.text += 'Du kannst eine Domina für ' + House.Mistress_Price + ' Bits einstellen.\r'; } } if (House.Teacher_Bought == false) { if (Sys.English == true) { MainText_House_2.text += 'You can hire a Teacher for ' + House.Teacher_Price + ' Bits.\r'; } else { MainText_House_2.text += 'Du kannst einen Lehrer für ' + House.Teacher_Price + ' Bits einstellen.\r'; } } if (House.Doctor_Bought == false) { if (Sys.English == true) { MainText_House_2.text += 'You can hire a Doctor for ' + House.Doctor_Price + ' Bits.\r'; } else { MainText_House_2.text += 'Du kannst einen Doktor für ' + House.Doctor_Price + ' Bits einstellen.\r'; } } MainText_House_2.text += '</h1>'; } function Buttons_House() { Button_House_Nurse.enabled = true; Button_House_Teacher.enabled = true; Button_House_Doctor.enabled = true; Button_House_Mistress.enabled = true; if (Sys.Bits + 1 > int(House.Price[House.Rooms])) { Button_House_Buy_Room.enabled = true; } if (Sys.Bits > 99 && House.Nurse_Bought == false) { Button_House_Nurse.enabled = true; } if (Sys.Bits > 2499 && House.Teacher_Bought == false) { Button_House_Teacher.enabled = true; } if (Sys.Bits > 9999 && House.Doctor_Bought == false) { Button_House_Doctor.enabled = true; } if (Sys.Bits > 499 && House.Mistress_Bought == false) { Button_House_Mistress.enabled = true; } if (House.Nurse_Bought == true) { if (House.Nurse == true) { if (Sys.English == true) { Button_House_Nurse.label = 'Nurse OFF'; } else { Button_House_Nurse.label = 'Schwester AUS'; } Button_House_Nurse.enabled = true; } else { if (Sys.English == true) { Button_House_Nurse.label = 'Nurse ON'; } else { Button_House_Nurse.label = 'Schwester AN'; } } } if (House.Teacher_Bought == true) { if (House.Teacher == true) { if (Sys.English == true) { Button_House_Teacher.label = 'Teacher OFF'; } else { Button_House_Teacher.label = 'Lehrer AUS'; } Button_House_Teacher.enabled = true; } else { if (Sys.English == true) { Button_House_Teacher.label = 'Teacher ON'; } else { Button_House_Teacher.label = 'Lehrer AN'; } } } if (House.Mistress_Bought == true) { if (House.Mistress == true) { if (Sys.English == true) { Button_House_Mistress.label = 'Mistress OFF'; } else { Button_House_Mistress.label = 'Domina AUS'; } Button_House_Mistress.enabled = true; } else { if (Sys.English == true) { Button_House_Mistress.label = 'Mistress ON'; } else { Button_House_Mistress.label = 'Domina AN'; } } } if (House.Doctor_Bought == true) { if (House.Doctor == true) { if (Sys.English == true) { Button_House_Doctor.label = 'Doctor OFF'; } else { Button_House_Doctor.label = 'Doktor AUS'; } Button_House_Doctor.enabled = true; } else { if (Sys.English == true) { Button_House_Doctor.label = 'Doctor ON'; } else { Button_House_Doctor.label = 'Doktor AN'; } } } if (House.Rooms <= House_Mares.length) { if (House.Nurse == false) { Button_House_Nurse.enabled = false; } if (House.Mistress == false) { Button_House_Mistress.enabled = false; } if (House.Teacher == false) { Button_House_Teacher.enabled = false; } if (House.Doctor == false) { Button_House_Doctor.enabled = false; } } } function Init_House() { Init_Header(); _root.MainText_House_2.depthChild0._alpha = 0; _root.MainText_House_2.styleSheet = Stat_style; _root.Button_House_Back.setStyle('fontSize', 16); _root.Button_House_Buy_Room.setStyle('fontSize', 16); _root.Button_House_Doctor.setStyle('fontSize', 16); _root.Button_House_Teacher.setStyle('fontSize', 16); _root.Button_House_Nurse.setStyle('fontSize', 16); _root.Button_House_Mistress.setStyle('fontSize', 16); _root.Button_House_Help.setStyle('fontSize', 16); if (Sys.English == false) { _root.Button_House_Back.label = 'Zurück'; _root.Button_House_Buy_Room.label = 'Raum kaufen'; _root.Button_House_Doctor.label = 'Doktor kaufen'; _root.Button_House_Teacher.label = 'Lehrer kaufen'; _root.Button_House_Nurse.label = 'Schwester kaufen'; _root.Button_House_Mistress.label = 'Domina kaufen'; _root.Button_House_Help.label = 'Hilfe'; } } Init_House(); House_Main_Text(); Buttons_House(); stop(); Button_House_Back.onRelease = function () { Eventname = 'Haupt'; gotoAndPlay(30); }; Button_House_Doctor.onRelease = function () { if (House.Doctor_Bought == false) { if (Sys.Bits > House.Doctor_Price - 1) { Sys.Bits -= House.Doctor_Price; House.Doctor_Bought = true; if (Sys.English == true) { Button_House_Doctor.label = 'Doctor ON'; } else { Button_House_Doctor.label = 'Doktor AN'; } _root.Label_Bits.text = 'Bits: ' + Sys.Bits; } } else { if (House.Doctor == false) { House.Doctor = true; if (Sys.English == true) { Button_House_Doctor.label = 'Doctor OFF'; } else { Button_House_Doctor.label = 'Doktor AUS'; } House_Mares.push('Doctor'); } else { House.Doctor = false; if (Sys.English == true) { Button_House_Doctor.label = 'Doctor ON'; } else { Button_House_Doctor.label = 'Doktor AN'; } j = 0; while (j < House_Mares.length) { if (House_Mares[j] == 'Doctor') { House_Mares.splice(j, 1); } ++j; } } } Buttons_House(); House_Main_Text(); }; Button_House_Teacher.onRelease = function () { if (House.Teacher_Bought == false) { if (Sys.Bits > House.Teacher_Price - 1) { Sys.Bits -= House.Teacher_Price; House.Teacher_Bought = true; if (Sys.English == true) { Button_House_Teacher.label = 'Teacher ON'; } else { Button_House_Teacher.label = 'Lehrer AN'; } _root.Label_Bits.text = 'Bits: ' + Sys.Bits; } } else { if (House.Teacher == false) { House.Teacher = true; if (Sys.English == true) { Button_House_Teacher.label = 'Teacher OFF'; } else { Button_House_Teacher.label = 'Lehrer AUS'; } House_Mares.push('Teacher'); } else { House.Teacher = false; if (Sys.English == true) { Button_House_Teacher.label = 'Teacher ON'; } else { Button_House_Teacher.label = 'Lehrer AN'; } j = 0; while (j < House_Mares.length) { if (House_Mares[j] == 'Teacher') { House_Mares.splice(j, 1); } ++j; } } } Buttons_House(); House_Main_Text(); }; Button_House_Mistress.onRelease = function () { if (House.Mistress_Bought == false) { if (Sys.Bits > House.Mistress_Price - 1) { Sys.Bits -= House.Mistress_Price; House.Mistress_Bought = true; if (Sys.English == true) { Button_House_Mistress.label = 'Mistress ON'; } else { Button_House_Mistress.label = 'Domina AN'; } _root.Label_Bits.text = 'Bits: ' + Sys.Bits; } } else { if (House.Mistress == false) { House.Mistress = true; if (Sys.English == true) { Button_House_Mistress.label = 'Mistress OFF'; } else { Button_House_Mistress.label = 'Domina AUS'; } House_Mares.push('Mistress'); } else { House.Mistress = false; if (Sys.English == true) { Button_House_Mistress.label = 'Mistress ON'; } else { Button_House_Mistress.label = 'Domina AN'; } j = 0; while (j < House_Mares.length) { if (House_Mares[j] == 'Mistress') { House_Mares.splice(j, 1); } ++j; } } } Buttons_House(); House_Main_Text(); }; Button_House_Nurse.onRelease = function () { if (House.Nurse_Bought == false) { if (Sys.Bits > House.Nurse_Price - 1) { Sys.Bits -= House.Nurse_Price; House.Nurse_Bought = true; if (Sys.English == true) { Button_House_Nurse.label = 'Nurse ON'; } else { Button_House_Nurse.label = 'Schwester AN'; } _root.Label_Bits.text = 'Bits: ' + Sys.Bits; } } else { if (House.Nurse == false) { House.Nurse = true; if (Sys.English == true) { Button_House_Nurse.label = 'Nurse OFF'; } else { Button_House_Nurse.label = 'Schwester AUS'; } House_Mares.push('Nurse'); } else { House.Nurse = false; if (Sys.English == true) { Button_House_Nurse.label = 'Nurse ON'; } else { Button_House_Nurse.label = 'Schwester AN'; } j = 0; while (j < House_Mares.length) { if (House_Mares[j] == 'Nurse') { House_Mares.splice(j, 1); } ++j; } } } Buttons_House(); House_Main_Text(); }; Button_House_Help.onRelease = function () { if (Sys.English == true) { _root.MainText_House_2.text = Helptext_House_EN; } else { _root.MainText_House_2.text = Helptext_House_DE; } }; Button_House_Buy_Room.onRelease = function () { if (Sys.Bits > int(House.Price[House.Rooms])) { Sys.Bits -= int(House.Price[House.Rooms]); _root.Label_Bits.text = 'Bits: ' + Sys.Bits; ++House.Rooms; House_Main_Text(); } else { if (Sys.English == true) { MainText_House.text = 'You can\'t afford an additional room for your house!'; } else { MainText_House.text = 'Du kannst dir kein weiteres Zimmer leisten!'; } } if (Sys.Bits < int(House.Price[House.Rooms])) { Button_House_Buy_Room.enabled = false; } else { Button_House_Buy_Room.enabled = true; } Buttons_House(); }; } instance Button_House_Buy_Room of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Room'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance MainText_House_2 of movieClip 257 TextArea { onClipEvent (construct) { editable = false; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Nurse of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Nurse'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Doctor of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Doctor'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Mistress of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Mistress'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Teacher of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Teacher'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_House_Help of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Help'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 12 { function Save(n) { this['Savegame' + n].data.Exist = true; this['Savegame' + n].data.Sys_Version = Sys.Version; this['Savegame' + n].data.Sys_Anthro = Sys.Anthro; this['Savegame' + n].data.Sys_Human = Sys.Human; this['Savegame' + n].data.Sys_Creatures = Sys.Creatures; this['Savegame' + n].data.Sys_Relaxed_Mode = Sys.Relaxed_Mode; this['Savegame' + n].data.Sys_Failsafe_Mode = Sys.Failsafe_Mode; this['Savegame' + n].data.Sys_English = Sys.English; this['Savegame' + n].data.Sys_Tag = Sys.Tag; this['Savegame' + n].data.Sys_Bits = Sys.Bits; this['Savegame' + n].data.Sys_Objective_lvl = Sys.Objective_lvl; this['Savegame' + n].data.Sys_Objective_Rank = Sys.Objective_Rank; this['Savegame' + n].data.Sys_Objective_Day = Sys.Objective_Day; this['Savegame' + n].data.Sys_Objective_Points = Sys.Objective_Points; this['Savegame' + n].data.Sys_Locked_Pics = Sys.Locked_Pics; this['Savegame' + n].data.Sys_Unlocked_Pics = Sys.Unlocked_Pics; this['Savegame' + n].data.Office_Level = Office.Level; this['Savegame' + n].data.Office_Gallery = Office.Gallery; this['Savegame' + n].data.Office_Statistics = Office.Statistics; this['Savegame' + n].data.House = House; this['Savegame' + n].data.House_Rooms = House.Rooms; this['Savegame' + n].data.House_Doctor = House.Doctor; this['Savegame' + n].data.House_Mistress = House.Mistress; this['Savegame' + n].data.House_Teacher = House.Teacher; this['Savegame' + n].data.House_Nurse = House.Nurse; this['Savegame' + n].data.House_Doctor_Bought = House.Doctor_Bought; this['Savegame' + n].data.House_Mistress_Bought = House.Mistress_Bought; this['Savegame' + n].data.House_Teacher_Bought = House.Teacher_Bought; this['Savegame' + n].data.House_Nurse_Bought = House.Nurse_Bought; this['Savegame' + n].data.Outskirt_House_Rooms = Outskirt_House.Rooms; this['Savegame' + n].data.Outskirt_House_Doctor = Outskirt_House.Doctor; this['Savegame' + n].data.Outskirt_House_Mistress = Outskirt_House.Mistress; this['Savegame' + n].data.Outskirt_House_Teacher = Outskirt_House.Teacher; this['Savegame' + n].data.Outskirt_House_Nurse = Outskirt_House.Nurse; this['Savegame' + n].data.Outskirt_House_Doctor_Bought = Outskirt_House.Doctor_Bought; this['Savegame' + n].data.Outskirt_House_Mistress_Bought = Outskirt_House.Mistress_Bought; this['Savegame' + n].data.Outskirt_House_Teacher_Bought = Outskirt_House.Teacher_Bought; this['Savegame' + n].data.Outskirt_House_Nurse_Bought = Outskirt_House.Nurse_Bought; this['Savegame' + n].data.Canterlot_House_Rooms = Canterlot_House.Rooms; this['Savegame' + n].data.Canterlot_House_Doctor = Canterlot_House.Doctor; this['Savegame' + n].data.Canterlot_House_Mistress = Canterlot_House.Mistress; this['Savegame' + n].data.Canterlot_House_Teacher = Canterlot_House.Teacher; this['Savegame' + n].data.Canterlot_House_Nurse = Canterlot_House.Nurse; this['Savegame' + n].data.Canterlot_House_Doctor_Bought = Canterlot_House.Doctor_Bought; this['Savegame' + n].data.Canterlot_House_Mistress_Bought = Canterlot_House.Mistress_Bought; this['Savegame' + n].data.Canterlot_House_Teacher_Bought = Canterlot_House.Teacher_Bought; this['Savegame' + n].data.Canterlot_House_Nurse_Bought = Canterlot_House.Nurse_Bought; this['Savegame' + n].data.Prison_House_Rooms = Prison_House.Rooms; this['Savegame' + n].data.Prison_House_Doctor = Prison_House.Doctor; this['Savegame' + n].data.Prison_House_Mistress = Prison_House.Mistress; this['Savegame' + n].data.Prison_House_Teacher = Prison_House.Teacher; this['Savegame' + n].data.Prison_House_Nurse = Prison_House.Nurse; this['Savegame' + n].data.Prison_House_Doctor_Bought = Prison_House.Doctor_Bought; this['Savegame' + n].data.Prison_House_Mistress_Bought = Prison_House.Mistress_Bought; this['Savegame' + n].data.Prison_House_Teacher_Bought = Prison_House.Teacher_Bought; this['Savegame' + n].data.Prison_House_Nurse_Bought = Prison_House.Nurse_Bought; temp = ''; if (Mares.length > 0) { i = 0; while (i < Mares.length) { temp += Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.Mares = temp; temp = ''; if (House_Mares.length > 0) { i = 0; while (i < House_Mares.length) { temp += House_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.House_Mares = temp; temp = ''; if (Canterlot_House_Mares.length > 0) { i = 0; while (i < Canterlot_House_Mares.length) { temp += Canterlot_House_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.Canterlot_House_Mares = temp; temp = ''; if (Outskirt_House_Mares.length > 0) { i = 0; while (i < Outskirt_House_Mares.length) { temp += Outskirt_House_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.Outskirt_House_Mares = temp; temp = ''; if (Prison_House_Mares.length > 0) { i = 0; while (i < Prison_House_Mares.length) { temp += Prison_House_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.Prison_House_Mares = temp; temp = ''; if (All_Mares.length > 0) { i = 0; while (i < All_Mares.length) { temp += All_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.All_Mares = temp; temp = ''; if (Available_Mares.length > 0) { i = 0; while (i < Available_Mares.length) { temp += Available_Mares[i] + 'XXX'; ++i; } } this['Savegame' + n].data.Available_Mares = temp; temp = ''; i = 0; while (i < All_Mares.length) { eval('Savegame' + n + '.data.' + All_Mares[i] + '_Rank') = eval(All_Mares[i] + '.Rank'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Obtained') = eval(All_Mares[i] + '.Obtained'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Unlocked') = eval(All_Mares[i] + '.Unlocked'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Worth') = eval(All_Mares[i] + '.Worth'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Health') = eval(All_Mares[i] + '.Health'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Obediance') = eval(All_Mares[i] + '.Obediance'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Endurance') = eval(All_Mares[i] + '.Endurance'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Charisma') = eval(All_Mares[i] + '.Charisma'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Skill') = eval(All_Mares[i] + '.Skill'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Attraction') = eval(All_Mares[i] + '.Attraction'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Exp') = eval(All_Mares[i] + '.Exp'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Work') = eval(All_Mares[i] + '.Work'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Sick') = eval(All_Mares[i] + '.Sick'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Bits_Earned') = eval(All_Mares[i] + '.Bits_Earned'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Total_Cost') = eval(All_Mares[i] + '.Total_Cost'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Cost') = eval(All_Mares[i] + '.Cost'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Day_Bought') = eval(All_Mares[i] + '.Day_Bought'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Days_Sick') = eval(All_Mares[i] + '.Days_Sick'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Times_Refused') = eval(All_Mares[i] + '.Times_Refused'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Days_Break') = eval(All_Mares[i] + '.Days_Break'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Special') = eval(All_Mares[i] + '.Special'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_Price') = eval(All_Mares[i] + '.Price'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_1') = eval(All_Mares[i] + '_NSFW_1.Unlocked'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_2') = eval(All_Mares[i] + '_NSFW_2.Unlocked'); eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_3') = eval(All_Mares[i] + '_NSFW_3.Unlocked'); Special_Mare = eval(All_Mares[i] + '.Special'); j = 0; while (j < Special_Mare.length) { eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_' + Special_Mare[j]) = eval(All_Mares[i] + '_NSFW_' + Special_Mare[j]); ++j; } ++i; } if (Sys.English == true) { MainText.text = '<p>Savegame ' + n + ' saved!</p>'; } else { MainText.text = '<p>Spielstand ' + n + ' gespeichert!</p>'; } this['Savegame' + n].flush(); } function View(n) { MainText.text = 'Version ' + eval('Savegame' + n + '.data.Sys_Version') + '\r'; MainText.text += 'Anthro ' + eval('Savegame' + n + '.data.Sys_Anthro') + '\r'; MainText.text += 'Human ' + eval('Savegame' + n + '.data.Sys_Human') + '\r'; MainText.text += 'Creatures ' + eval('Savegame' + n + '.data.Sys_Creatures') + '\r'; MainText.text += 'Tag ' + eval('Savegame' + n + '.data.Sys_Tag') + '\r'; MainText.text += 'Objective_lvl ' + eval('Savegame' + n + '.data.Sys_Objective_lvl') + '\r'; MainText.text += 'Objective_Points ' + eval('Savegame' + n + '.data.Sys_Objective_Points') + '\r'; MainText.text += 'Objective_Day ' + eval('Savegame' + n + '.data.Sys_Objective_Day') + '\r'; MainText.text += 'Objective_Rank ' + eval('Savegame' + n + '.data.Sys_Objective_Rank') + '\r'; MainText.text += 'Bits ' + eval('Savegame' + n + '.data.Sys_Bits') + '\r'; MainText.text += 'Unlocked Pics ' + eval('Savegame' + n + '.data.Sys_Unlocked_Pics') + '\r'; MainText.text += 'Locked Pics ' + eval('Savegame' + n + '.data.Sys_Locked_Pics') + '\r'; MainText.text += 'House Rooms: ' + eval('Savegame' + n + '.data.House_Rooms') + '\r'; MainText.text += 'Canterlot House Rooms: ' + eval('Savegame' + n + '.data.Canterlot_House_Rooms') + '\r'; MainText.text += 'Outskirt House Rooms: ' + eval('Savegame' + n + '.data.Outskirt_House_Rooms') + '\r'; MainText.text += 'Prison House Rooms: ' + eval('Savegame' + n + '.data.Prison_House_Rooms') + '\r'; MainText.text += 'House_Mares ' + eval('Savegame' + n + '.data.House_Mares') + '\r'; MainText.text += 'All_Mares ' + eval('Savegame' + n + '.data.All_Mares') + '\r'; MainText.text += 'Available_Mares ' + eval('Savegame' + n + '.data.Available_Mares') + '\r'; MainText.text += 'Mares ' + eval('Savegame' + n + '.data.Mares') + '\r'; i = 0; while (i < All_Mares.length) { Special_Mare = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Special'); MainText.text += All_Mares[i] + '_Obtained: ' + eval('Savegame' + n + '.data.' + All_Mares[i] + '_Obtained') + '\r'; MainText.text += All_Mares[i] + '_NSFW_1: ' + eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_1') + '\r'; MainText.text += All_Mares[i] + '_NSFW_2: ' + eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_2') + '\r'; MainText.text += All_Mares[i] + '_NSFW_3: ' + eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_3') + '\r'; MainText.text += All_Mares[i] + '_Special: ' + Special_Mare + '\r'; j = 0; while (j < Special_Mare.length) { MainText.text += All_Mares[i] + '_NSFW_' + Special_Mare[j] + '.Unlocked: ' + eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_' + Special_Mare[j] + '.Unlocked') + '\r'; ++j; } ++i; } } function Laden(n) { Sys.Version = eval('Savegame' + n + '.data.Sys_Version'); Sys.Anthro = eval('Savegame' + n + '.data.Sys_Anthro'); Sys.Human = eval('Savegame' + n + '.data.Sys_Human'); Sys.Creatures = eval('Savegame' + n + '.data.Sys_Creatures'); Sys.Relaxed_Mode = eval('Savegame' + n + '.data.Sys_Relaxed_Mode'); Sys.Failsafe_Mode = eval('Savegame' + n + '.data.Sys_Failsafe_Mode'); Sys.English = eval('Savegame' + n + '.data.Sys_English'); Sys.Tag = eval('Savegame' + n + '.data.Sys_Tag'); Sys.Bits = eval('Savegame' + n + '.data.Sys_Bits'); Sys.Objective_lvl = eval('Savegame' + n + '.data.Sys_Objective_lvl'); Sys.Objective_Rank = eval('Savegame' + n + '.data.Sys_Objective_Rank'); Sys.Objective_Day = eval('Savegame' + n + '.data.Sys_Objective_Day'); Sys.Objective_Points = eval('Savegame' + n + '.data.Sys_Objective_Points'); Sys.Locked_Pics = eval('Savegame' + n + '.data.Sys_Locked_Pics'); Sys.Unlocked_Pics = eval('Savegame' + n + '.data.Sys_Unlocked_Pics'); Office.Level = eval('Savegame' + n + '.data.Office_Level'); Office.Gallery = eval('Savegame' + n + '.data.Office_Gallery'); Office.Statistics = eval('Savegame' + n + '.data.Office_Statistics'); House.Rooms = eval('Savegame' + n + '.data.House_Rooms'); House.Doctor = eval('Savegame' + n + '.data.House_Doctor'); House.Mistress = eval('Savegame' + n + '.data.House_Mistress'); House.Teacher = eval('Savegame' + n + '.data.House_Teacher'); House.Nurse = eval('Savegame' + n + '.data.House_Nurse'); House.Doctor_Bought = eval('Savegame' + n + '.data.House_Doctor_Bought'); House.Mistress_Bought = eval('Savegame' + n + '.data.House_Mistress_Bought'); House.Teacher_Bought = eval('Savegame' + n + '.data.House_Teacher_Bought'); House.Nurse_Bought = eval('Savegame' + n + '.data.House_Nurse_Bought'); Outskirt_House.Rooms = eval('Savegame' + n + '.data.Outskirt_House_Rooms'); Outskirt_House.Doctor = eval('Savegame' + n + '.data.Outskirt_House_Doctor'); Outskirt_House.Mistress = eval('Savegame' + n + '.data.Outskirt_House_Mistress'); Outskirt_House.Teacher = eval('Savegame' + n + '.data.Outskirt_House_Teacher'); Outskirt_House.Nurse = eval('Savegame' + n + '.data.Outskirt_House_Nurse'); Outskirt_House.Doctor_Bought = eval('Savegame' + n + '.data.Outskirt_House_Doctor_Bought'); Outskirt_House.Mistress_Bought = eval('Savegame' + n + '.data.Outskirt_House_Mistress_Bought'); Outskirt_House.Teacher_Bought = eval('Savegame' + n + '.data.Outskirt_House_Teacher_Bought'); Outskirt_House.Nurse_Bought = eval('Savegame' + n + '.data.Outskirt_House_Nurse_Bought'); Canterlot_House.Rooms = eval('Savegame' + n + '.data.Canterlot_House_Rooms'); Canterlot_House.Doctor = eval('Savegame' + n + '.data.Canterlot_House_Doctor'); Canterlot_House.Mistress = eval('Savegame' + n + '.data.Canterlot_House_Mistress'); Canterlot_House.Teacher = eval('Savegame' + n + '.data.Canterlot_House_Teacher'); Canterlot_House.Nurse = eval('Savegame' + n + '.data.Canterlot_House_Nurse'); Canterlot_House.Doctor_Bought = eval('Savegame' + n + '.data.Canterlot_House_Doctor_Bought'); Canterlot_House.Mistress_Bought = eval('Savegame' + n + '.data.Canterlot_House_Mistress_Bought'); Canterlot_House.Teacher_Bought = eval('Savegame' + n + '.data.Canterlot_House_Teacher_Bought'); Canterlot_House.Nurse_Bought = eval('Savegame' + n + '.data.Canterlot_House_Nurse_Bought'); Prison_House.Rooms = eval('Savegame' + n + '.data.Prison_House_Rooms'); Prison_House.Doctor = eval('Savegame' + n + '.data.Prison_House_Doctor'); Prison_House.Mistress = eval('Savegame' + n + '.data.Prison_House_Mistress'); Prison_House.Teacher = eval('Savegame' + n + '.data.Prison_House_Teacher'); Prison_House.Nurse = eval('Savegame' + n + '.data.Prison_House_Nurse'); Prison_House.Doctor_Bought = eval('Savegame' + n + '.data.Prison_House_Doctor_Bought'); Prison_House.Mistress_Bought = eval('Savegame' + n + '.data.Prison_House_Mistress_Bought'); Prison_House.Teacher_Bought = eval('Savegame' + n + '.data.Prison_House_Teacher_Bought'); Prison_House.Nurse_Bought = eval('Savegame' + n + '.data.Prison_House_Nurse_Bought'); temp = eval('Savegame' + n + '.data.Mares'); Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.House_Mares'); House_Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.Canterlot_House_Mares'); Canterlot_House_Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.Outskirt_House_Mares'); Outskirt_House_Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.Prison_House_Mares'); Prison_House_Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.All_Mares'); All_Mares = temp.split('XXX'); temp = eval('Savegame' + n + '.data.Available_Mares'); Available_Mares = temp.split('XXX'); temp = ''; Mares.pop(); House_Mares.pop(); Canterlot_House_Mares.pop(); Outskirt_House_Mares.pop(); Prison_House_Mares.pop(); Available_Mares.pop(); i = 0; while (i < All_Mares.length) { eval(All_Mares[i] + '.Rank') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Rank'); eval(All_Mares[i] + '.Obtained') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Obtained'); eval(All_Mares[i] + '.Unlocked') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Unlocked'); eval(All_Mares[i] + '.Worth') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Worth'); eval(All_Mares[i] + '.Health') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Health'); eval(All_Mares[i] + '.Obediance') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Obediance'); eval(All_Mares[i] + '.Endurance') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Endurance'); eval(All_Mares[i] + '.Charisma') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Charisma'); eval(All_Mares[i] + '.Skill') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Skill'); eval(All_Mares[i] + '.Attraction') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Attraction'); eval(All_Mares[i] + '.Exp') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Exp'); eval(All_Mares[i] + '.Work') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Work'); eval(All_Mares[i] + '.Sick') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Sick'); eval(All_Mares[i] + '.Bits_Earned') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Bits_Earned'); eval(All_Mares[i] + '.Total_Cost') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Total_Cost'); eval(All_Mares[i] + '.Day_Bought') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Day_Bought'); eval(All_Mares[i] + '.Days_Sick') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Days_Sick'); eval(All_Mares[i] + '.Times_Refused') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Times_Refused'); eval(All_Mares[i] + '.Days_Break') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Days_Break'); eval(All_Mares[i] + '.Price') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Price'); eval(All_Mares[i] + '.Special') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Special'); eval(All_Mares[i] + '_NSFW_1.Unlocked') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_1'); eval(All_Mares[i] + '_NSFW_2.Unlocked') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_2'); eval(All_Mares[i] + '_NSFW_3.Unlocked') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_3'); if (eval('Savegame' + n + '.data.' + All_Mares[i] + '_Cost') != undefined) { eval(All_Mares[i] + '.Cost') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Cost'); } Special_Mare = eval('Savegame' + n + '.data.' + All_Mares[i] + '_Special'); j = 0; while (j < Special_Mare.length) { eval(All_Mares[i] + '_NSFW_' + Special_Mare[j] + '.Unlocked') = eval('Savegame' + n + '.data.' + All_Mares[i] + '_NSFW_' + Special_Mare[j] + '.Unlocked'); ++j; } ++i; } i = 0; while (i < All_Mares.length) { eval(All_Mares[i] + '.Price') = Math.floor(eval(All_Mares[i] + '.Price')); eval(All_Mares[i] + '.Special_Number') = eval(All_Mares[i] + '.Special.length'); ++i; } i = 0; if (Sys.English == true) { MainText.text = '<p>Savegame ' + n + ' loaded!</p>'; } else { MainText.text = '<p>Spielstand ' + n + ' geladen!</p>'; } } function Init_Save() { Init_Header(); _root.MainText.depthChild0._alpha = 0; _root.MainText.styleSheet = styles; _root.Button_Save_Back.setStyle('fontSize', 16); _root.Button_Save_Slot_1.setStyle('fontSize', 16); _root.Button_Save_Slot_2.setStyle('fontSize', 16); _root.Button_Save_Slot_3.setStyle('fontSize', 16); _root.Button_Save_Slot_4.setStyle('fontSize', 16); _root.Button_Load_Slot_1.setStyle('fontSize', 16); _root.Button_Load_Slot_2.setStyle('fontSize', 16); _root.Button_Load_Slot_3.setStyle('fontSize', 16); _root.Button_Load_Slot_4.setStyle('fontSize', 16); _root.Button_View_Slot_1.visible = false; _root.Button_View_Slot_2.visible = false; _root.Button_View_Slot_3.visible = false; _root.Button_View_Slot_4.visible = false; _root.Button_View_Clear_1.visible = false; _root.Button_View_Clear.visible = false; _root.Button_View_Clear.visible = false; _root.Button_View_Clear.visible = false; if (Sys.English == false) { _root.Button_Save_Back.label = 'Zurück'; _root.Button_Save_Slot_1.label = 'Speichern Slot 1'; _root.Button_Save_Slot_2.label = 'Speichern Slot 2'; _root.Button_Save_Slot_3.label = 'Speichern Slot 3'; _root.Button_Save_Slot_4.label = 'Speichern Slot 4'; _root.Button_Load_Slot_1.label = 'Laden Slot 1'; _root.Button_Load_Slot_2.label = 'Laden Slot 2'; _root.Button_Load_Slot_3.label = 'Laden Slot 3'; _root.Button_Load_Slot_4.label = 'Laden Slot 4'; } } function Show_Saves() { MainText.text = '<p>\r'; MainText.text += 'Slot 1:\r'; if (Savegame1.data.Exist != true) { MainText.text += 'XXX\r'; } else { MainText.text += 'Day / Tag: ' + Savegame1.data.Sys_Tag + '\r'; MainText.text += 'Mares / Stuten: ' + Split_String_len(Savegame1.data.Mares) + '\r'; MainText.text += 'Bits: ' + Savegame1.data.Sys_Bits + '\r'; } MainText.text += '----------------------------------------------------\r'; MainText.text += 'Slot 2:\r'; if (Savegame2.data.Exist != true) { MainText.text += 'XXX\r'; } else { MainText.text += 'Day / Tag: ' + Savegame2.data.Sys_Tag + '\r'; MainText.text += 'Mares / Stuten: ' + Split_String_len(Savegame2.data.Mares) + '\r'; MainText.text += 'Bits: ' + Savegame2.data.Sys_Bits + '\r'; } MainText.text += '----------------------------------------------------\r'; MainText.text += 'Slot 3:\r'; if (Savegame3.data.Exist != true) { MainText.text += 'XXX\r'; } else { MainText.text += 'Day / Tag: ' + Savegame3.data.Sys_Tag + '\r'; MainText.text += 'Mares / Stuten: ' + Split_String_len(Savegame3.data.Mares) + '\r'; MainText.text += 'Bits: ' + Savegame3.data.Sys_Bits + '\r'; } MainText.text += '----------------------------------------------------\r'; MainText.text += 'Slot 4:\r'; if (Savegame4.data.Exist != true) { MainText.text += 'XXX\r'; } else { MainText.text += 'Day / Tag: ' + Savegame4.data.Sys_Tag + '\r'; MainText.text += 'Mares / Stuten: ' + Split_String_len(Savegame4.data.Mares) + '\r'; MainText.text += 'Bits: ' + Savegame4.data.Sys_Bits + '\r'; } MainText.text += '----------------------------------------------------\r'; MainText.text += '</p>'; } function Split_String(e) { var v1 = new Array(); v1 = e.split('XXX'); return v1; } function Split_String_len(e) { var v1 = new Array(); v1 = e.split('XXX'); return v1.length; } var Savegame1 = SharedObject.getLocal('Savegame1'); var Savegame2 = SharedObject.getLocal('Savegame2'); var Savegame3 = SharedObject.getLocal('Savegame3'); var Savegame4 = SharedObject.getLocal('Savegame4'); Init_Save(); Show_Saves(); stop(); Button_Save_Back.onRelease = function () { Eventname = 'Haupt'; gotoAndPlay(30); }; Button_Save_Slot_1.onRelease = function () { Save(1); }; Button_Save_Slot_2.onRelease = function () { Save(2); }; Button_Save_Slot_3.onRelease = function () { Save(3); }; Button_Save_Slot_4.onRelease = function () { Save(4); }; Button_Load_Slot_1.onRelease = function () { Laden(1); }; Button_Load_Slot_2.onRelease = function () { Laden(2); }; Button_Load_Slot_3.onRelease = function () { Laden(3); }; Button_Load_Slot_4.onRelease = function () { Laden(4); }; Button_View_Slot_1.onRelease = function () { View(1); }; Button_View_Slot_2.onRelease = function () { View(2); }; Button_View_Slot_3.onRelease = function () { View(3); }; Button_View_Slot_4.onRelease = function () { View(4); }; Button_Clear_Slot_1.onRelease = function () { Savegame1.clear(); Show_Saves(); }; Button_Clear_Slot_2.onRelease = function () { Savegame2.clear(); Show_Saves(); }; Button_Clear_Slot_3.onRelease = function () { Savegame3.clear(); Show_Saves(); }; Button_Clear_Slot_4.onRelease = function () { Savegame4.clear(); Show_Saves(); }; } instance MainText of movieClip 257 TextArea { onClipEvent (construct) { editable = false; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save_Slot_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Save Slot 1'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Load_Slot_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Load Slot 1'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save_Slot_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Save Slot 2'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Load_Slot_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Load Slot 2'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save_Slot_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Save Slot 3'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Load_Slot_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Load Slot 3'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save_Slot_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Save Slot 4'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Load_Slot_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Load Slot 4'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Save_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_View_Slot_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'View Slot 1'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_View_Slot_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'View Slot 2'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_View_Slot_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'View Slot 3'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_View_Slot_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'View Slot 4'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Clear_Slot_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Clear Slot 1'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Clear_Slot_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Clear Slot 2'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Clear_Slot_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Clear Slot 3'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Button_Clear_Slot_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Clear Slot 4'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 13 { _root.MainText_GameOver.depthChild0._alpha = 0; _root.MainText_GameOver.styleSheet = styles; if (Sys.English == true) { MainText_GameOver.text = '<h1>You failed your objectives three times or lost too much money with your buisness. Sadly you have to close your shop and sell off all your mares to pay your debts. Lucky for you, there seems to be someone who is willing to buy all your mares from you. With barely enough money to avoid jail you have to leave ponyville and find a new job. \r\r\rBetter Luck next time.</h1>'; } else { MainText_GameOver.text = '<h1>Du hast deine Aufgaben drei mal nicht erfüllen können oder hast zu viel Geld mit deinem Geschäft verloren. Leider musst du dein Geschäft schließen und alle deine Angestellten verkaufen um deine Schulden zu bezahlen. Zu deinem Glück hat sich bereits ein Interessent gemeldet der alle deine Stuten abkaufen möchte. Mit gerade einmal genug Geld um nicht ins Gefängnis zu wandern verlässt du Ponyville und suchst dir einen neuen Job.\r\r\rViel Glück bei deinem nächsten Versuch.</h1>'; } stop(); } movieClip 1497 { } // unknown tag 88 length 127 instance MainText_GameOver of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } frame 14 { function Page_Buttons() { if (Office.Page == 1) { Office_Prev.enabled = false; } else { Office_Prev.enabled = true; } if (Office.Page == Office.Max_Pages) { Office_Next.enabled = false; } else { Office_Next.enabled = true; } if (Sys.English == true) { Office_Next.label = 'Page: ' + (Office.Page + 1); Office_Prev.label = 'Page: ' + (Office.Page - 1); } else { Office_Next.label = 'Seite: ' + (Office.Page + 1); Office_Prev.label = 'Seite: ' + (Office.Page - 1); } if (Office.Page - 1 == 0) { Office_Prev.visible = false; } else { Office_Prev.visible = true; } if (Office.Page == Office.Max_Pages) { Office_Next.visible = false; } else { Office_Next.visible = true; } if (Office.Gallery == true) { Office_Buy_Gallery.enabled = false; Office_Gallery.enabled = true; } else { Office_Buy_Gallery.enabled = true; Office_Gallery.enabled = false; } if (Office.Statistics == true) { Office_Buy_Statistics.enabled = false; Office_Statistics.enabled = true; } else { Office_Buy_Statistics.enabled = true; Office_Statistics.enabled = false; } if (Office.Level == 4) { Office_Upgrade.enabled = false; } if (Sys.Bits < Office.Gallery_Price) { Office_Buy_Gallery.enabled = false; } if (Sys.Bits < Office.Statistics_Price) { Office_Buy_Statistics.enabled = false; } if (Sys.Bits < Office.Upgrade_Price[Office.Level]) { Office_Upgrade.enabled = false; } if (Office.Help == true) { if (Sys.English == true) { Office_Help.label = 'Back'; } else { Office_Help.label = 'Zurück'; } } else { if (Sys.English == true) { Office_Help.label = 'Help'; } else { Office_Help.label = 'Hilfe'; } } } function Refresh() { if (Sys.English == true) { Office_MainText.text = 'Office Level: ' + Office.Level + '\r' + 'Mares: ' + Mares.length + '\r' + 'Free Rooms: ' + (House.Rooms - House_Mares.length) + '\r' + 'Unlocked Arts: ' + Sys.Unlocked_Pics + ' / ' + Sys.Locked_Pics; } else { Office_MainText.text = 'Büro Level: ' + Office.Level + '\r' + 'Stuten: ' + Mares.length + '\r' + 'Freie Räume: ' + (House.Rooms - House_Mares.length) + '\r' + 'Artworks: ' + Sys.Unlocked_Pics + ' / ' + Sys.Locked_Pics; } } function Show_Mares() { i = 1; while (i < 13) { this['Office_Label_' + i].visible = false; this['Office_Button_' + i].visible = false; ++i; } if (Office.Help == false) { k = Office.Page - 1; j = Office.Level * 3; i = 0; while (i < j) { Temps.Name = eval(Mares[i + k * j] + '.Name'); if (Temps.Name != undefined) { l = Temps.Name.length; while (l < 25) { Temps.Name += ' '; ++l; } Temps.Exp = eval(Mares[i + k * j] + '.Exp'); Temps.Rank = eval(Mares[i + k * j] + '.Rank'); Temps.Health = leadingZero_2(eval(Mares[i + k * j] + '.Health')); if (Sys.English == true) { this['Office_Label_' + (i + 1)].text = '<p>' + Temps.Name + 'Rank: ' + Temps.Rank + ' Health: ' + Temps.Health + ' ' + 'Exp: ' + Temps.Exp; } else { this['Office_Label_' + (i + 1)].text = '<p>' + Temps.Name + 'Rang: ' + Temps.Rank + ' Gesundheit: ' + Temps.Health + ' ' + 'Exp: ' + Temps.Exp; } this['Office_Label_' + (i + 1)].visible = true; Referenz[i] = Mares[i + k * j]; this['Office_Button_' + (i + 1)].visible = true; if (eval(Mares[i + k * j] + '.Work') == true) { if (Sys.English == true) { this['Office_Button_' + (i + 1)].label = 'Working'; } else { this['Office_Button_' + (i + 1)].label = 'Arbeitet'; } } else { if (Sys.English == true) { this['Office_Button_' + (i + 1)].label = 'Break'; } else { this['Office_Button_' + (i + 1)].label = 'Pause'; } } } ++i; } Office_Helpbox.visible = false; } else { Office_Helpbox.visible = true; } } function Check_Rooms() { i = 0; while (i < 12) { if (House.Rooms > House_Mares.length) { this['Office_Button_' + (i + 1)].enabled = true; } else { if (eval(Referenz[i] + '.Work') == true) { this['Office_Button_' + (i + 1)].enabled = true; } else { this['Office_Button_' + (i + 1)].enabled = false; } } ++i; } } function Office_Button_Work(e) { if (eval(Referenz[e - 1] + '.Work') == false) { House_Mares.push(Referenz[e - 1]); } else { j = 0; while (j < House_Mares.length) { if (House_Mares[j] == Referenz[e - 1]) { House_Mares.splice(j, 1); } ++j; } } eval(Referenz[e - 1] + '.Work') = !eval(Referenz[e - 1] + '.Work'); if (eval(Referenz[e - 1] + '.Work') == true) { if (Sys.English == true) { this['Office_Button_' + e].label = 'Working'; } else { this['Office_Button_' + e].label = 'Arbeitet'; } } else { if (Sys.English == true) { this['Office_Button_' + e].label = 'Break'; } else { this['Office_Button_' + e].label = 'Pause'; } } Check_Rooms(); Refresh(); } function Init_Office() { Office_Upgrade.setStyle('fontSize', 16); Office_Buy_Statistics.setStyle('fontSize', 16); Office_Buy_Gallery.setStyle('fontSize', 16); Office_Next.setStyle('fontSize', 16); Office_Prev.setStyle('fontSize', 16); Office_Statistics.setStyle('fontSize', 16); Office_Gallery.setStyle('fontSize', 16); Office_Back.setStyle('fontSize', 16); Office_Help.setStyle('fontSize', 16); Office_MainText.setStyle('fontSize', 16); Office_Helpbox.text = Office_Helptext_EN; if (Sys.English == false) { Office_Upgrade.label = 'Verbessern'; Office_Buy_Statistics.label = 'Statistik kaufen'; Office_Buy_Gallery.label = 'Gallerie kaufen'; Office_Next.label = 'Nächste'; Office_Prev.label = 'Vorherige'; Office_Statistics.label = 'Statistik'; Office_Gallery.label = 'Gallerie'; Office_Back.label = 'Zurück'; Office_Help.label = 'Hilfe'; Office_Helpbox.text = Office_Helptext_DE; } Office_Button_1.visible = false; Office_Button_2.visible = false; Office_Button_3.visible = false; Office_Button_4.visible = false; Office_Button_5.visible = false; Office_Button_6.visible = false; Office_Button_7.visible = false; Office_Button_8.visible = false; Office_Button_9.visible = false; Office_Button_10.visible = false; Office_Button_11.visible = false; Office_Button_12.visible = false; Office_Label_1.visible = false; Office_Label_2.visible = false; Office_Label_3.visible = false; Office_Label_4.visible = false; Office_Label_5.visible = false; Office_Label_6.visible = false; Office_Label_7.visible = false; Office_Label_8.visible = false; Office_Label_9.visible = false; Office_Label_10.visible = false; Office_Label_11.visible = false; Office_Label_12.visible = false; Office_Label_1.styleSheet = styles; Office_Label_2.styleSheet = styles; Office_Label_3.styleSheet = styles; Office_Label_4.styleSheet = styles; Office_Label_5.styleSheet = styles; Office_Label_6.styleSheet = styles; Office_Label_7.styleSheet = styles; Office_Label_8.styleSheet = styles; Office_Label_9.styleSheet = styles; Office_Label_10.styleSheet = styles; Office_Label_11.styleSheet = styles; Office_Label_12.styleSheet = styles; Office_Helpbox.styleSheet = styles; Office_Helpbox.depthChild0._alpha = 0; if (Mares.length == 0) { Office.Max_Pages = 1; } else { j = 0; i = 0; while (i < Mares.length) { if (j * Office.Level * 3 < Mares.length) { ++j; } ++i; } Office.Max_Pages = j; } } Init_Header(); Init_Office(); Page_Buttons(); Show_Mares(); Check_Rooms(); Refresh(); stop(); Office_Button_1.onRelease = function () { Office_Button_Work(1); }; Office_Button_2.onRelease = function () { Office_Button_Work(2); }; Office_Button_3.onRelease = function () { Office_Button_Work(3); }; Office_Button_4.onRelease = function () { Office_Button_Work(4); }; Office_Button_5.onRelease = function () { Office_Button_Work(5); }; Office_Button_6.onRelease = function () { Office_Button_Work(6); }; Office_Button_7.onRelease = function () { Office_Button_Work(7); }; Office_Button_8.onRelease = function () { Office_Button_Work(8); }; Office_Button_9.onRelease = function () { Office_Button_Work(9); }; Office_Button_10.onRelease = function () { Office_Button_Work(10); }; Office_Button_11.onRelease = function () { Office_Button_Work(11); }; Office_Button_12.onRelease = function () { Office_Button_Work(12); }; Office_Next.onRelease = function () { ++Office.Page; Show_Mares(); Page_Buttons(); Check_Rooms(); Refresh(); }; Office_Prev.onRelease = function () { --Office.Page; Show_Mares(); Page_Buttons(); Check_Rooms(); Refresh(); }; Office_Back.onRelease = function () { Eventname = 'Haupt'; gotoAndPlay(30); }; Office_Gallery.onRelease = function () { Eventname = 'Gallery'; i = 1; gotoAndPlay(30); }; Office_Statistics.onRelease = function () { Eventname = 'Statistics'; i = 1; gotoAndPlay(30); }; Office_Help.onRelease = function () { Office.Help = !Office.Help; Page_Buttons(); Show_Mares(); }; Office_Upgrade.onRelease = function () { if (Sys.Bits >= Office.Upgrade_Price[Office.Level]) { Sys.Bits -= Office.Upgrade_Price[Office.Level]; ++Office.Level; } Init_Header(); Page_Buttons(); Show_Mares(); }; Office_Buy_Gallery.onRelease = function () { if (Sys.Bits >= Gallery_Price) { Office.Gallery = true; Sys.Bits -= Office.Gallery_Price; } Page_Buttons(); Init_Header(); }; Office_Buy_Statistics.onRelease = function () { if (Sys.Bits >= Statistics_Price) { Office.Statistics = true; Sys.Bits -= Office.Statistics_Price; } Init_Header(); Page_Buttons(); }; } instance Office_Helpbox of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = false; minHeight = 0; minWidth = 0; } } instance Office_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Upgrade of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Upgrade Office'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Next of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next Page'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Prev of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Prevous Page'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Statistics of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Statistics'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Buy_Statistics of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Statistics'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Buy_Gallery of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Buy Gallery'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_1 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_2 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_3 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_4 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_5 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_5 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_6 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_6 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_7 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_7 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_10 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_8 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_11 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_9 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_8 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_10 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_9 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_11 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Label_12 of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = true; text = 'Twilight'; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Button_12 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Break'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Gallery of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Gallery'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Office_MainText of movieClip 277 Label { onClipEvent (construct) { autoSize = 'none'; html = false; text = ''; visible = true; minHeight = 0; minWidth = 0; } } instance Office_Help of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Help'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 15 { function Mare_Stats(Mare) { eval('IMG_' + Mares[i - 1] + '_Bulletin._visible') = true; l = Sys.Tag - eval(Mare + '.Day_Bought'); l -= eval(Mare + '.Days_Sick') + eval(Mare + '.Days_Break') + eval(Mare + '.Times_Refused'); k = eval(Mare + '.Obediance') + eval(Mare + '.Endurance') + eval(Mare + '.Charisma'); k += eval(Mare + '.Skill') + eval(Mare + '.Attraction') + eval(Mare + '.Worth'); k -= eval(Mare + '.Rank') * 100; if (Sys.English == true) { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Race: ' + eval(Mare + '.Race') + ' \r' + 'Age: ' + eval(Mare + '.Age') + '\r' + 'Experience: ' + eval(Mare + '.Exp') + '\r' + 'Obediance: ' + eval(Mare + '.Obediance') + '\r' + 'Endurance: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Skill: ' + eval(Mare + '.Skill') + '\r' + 'Attraction: ' + eval(Mare + '.Attraction') + '\r' + 'Health: ' + eval(Mare + '.Health') + '\r' + 'Rank: ' + eval(Mare + '.Rank') + '\r' + 'Daily-Cost: ' + eval(Mare + '.Cost') + '\r' + 'Worth: ' + eval(Mare + '.Worth') + '\r\r' + 'Day-bought: ' + eval(Mare + '.Day_Bought') + '\r' + 'Days-Working: ' + l + '\r' + 'Days-Sick: ' + eval(Mare + '.Days_Sick') + '\r' + 'Days-Break: ' + eval(Mare + '.Days_Break') + '\r' + 'Days-Refused: ' + eval(Mare + '.Times_Refused') + '\r' + 'Bits-earned: ' + eval(Mare + '.Bits_Earned') + '\r' + 'Total-Cost: ' + eval(Mare + '.Total_Cost') + '\r' + 'Next-Rank: ' + k + '% \r' + '</h1>'; } else { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Rasse: ' + eval(Mare + '.Race') + ' \r' + 'Alter: ' + eval(Mare + '.Age') + '\r' + 'Erfahrung: ' + eval(Mare + '.Exp') + '\r' + 'Gehorsam: ' + eval(Mare + '.Obediance') + '\r' + 'Ausdauer: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Technik: ' + eval(Mare + '.Skill') + '\r' + 'Aussehen: ' + eval(Mare + '.Attraction') + '\r' + 'Gesundheit: ' + eval(Mare + '.Health') + '\r' + 'Rang: ' + eval(Mare + '.Rank') + '\r' + 'Tageskosten: ' + eval(Mare + '.Cost') + '\r' + 'Wert: ' + eval(Mare + '.Worth') + '\r\r</p>'; 'Kauftag: ' + eval(Mare + '.Day_Bought') + '\r' + 'Arbeitstage: ' + l + '\r' + 'Krankentage: ' + eval(Mare + '.Days_Sick') + '\r' + 'Pausentage: ' + eval(Mare + '.Days_Break') + '\r' + 'Streiktage: ' + eval(Mare + '.Times_Refused') + '\r' + 'Einnahmen: ' + eval(Mare + '.Bits_Earned') + '\r' + 'Ausgaben: ' + eval(Mare + '.Total_Cost') + '\r' + 'Aufstieg: ' + k + '% \r' + '</h1>'; } Stats_MainText.text = temp_2; } function Init_Stats() { Init_Header(); _root.Stats_MainText.depthChild0._alpha = 0; _root.Stats_MainText.styleSheet = Stat_style; Stats_Prev.setStyle('fontSize', 16); Stats_Back.setStyle('fontSize', 16); Stats_Next.setStyle('fontSize', 16); Stats_Art_1.setStyle('fontSize', 16); Stats_Art_2.setStyle('fontSize', 16); Stats_Art_3.setStyle('fontSize', 16); Stats_Art_4.setStyle('fontSize', 16); Stats_Artist.setStyle('fontSize', 14); if (Sys.English == false) { Stats_Prev.label = 'Vorherige'; Stats_Back.label = 'Zurück'; Stats_Next.label = 'Nächste'; } } Init_Stats(); Mare_Stats(Mares[i - 1]); stop(); Stats_Artist.onRelease = function () { temp = eval(Current_Pic.Name + '.Link'); getURL(temp, '_blank'); }; Stats_Prev.onRelease = function () { eval('IMG_' + Mares[i - 1] + '_NSFW_1._visible') = false; eval('IMG_' + Mares[i - 1] + '_NSFW_2._visible') = false; eval('IMG_' + Mares[i - 1] + '_NSFW_3._visible') = false; eval('IMG_' + Mares[i - 1] + '_Bulletin._visible') = false; Stats_Artist.visible = false; if (i > 1) { --i; } else { i = Mares.length; } Mare_Stats(Mares[i - 1]); }; Stats_Back.onRelease = function () { Eventname = 'Office'; gotoAndPlay(30); }; Stats_Next.onRelease = function () { eval('IMG_' + Mares[i - 1] + '_NSFW_1._visible') = false; eval('IMG_' + Mares[i - 1] + '_NSFW_2._visible') = false; eval('IMG_' + Mares[i - 1] + '_NSFW_3._visible') = false; eval('IMG_' + Mares[i - 1] + '_Bulletin._visible') = false; Stats_Artist.visible = false; if (i <= Mares.length - 1) { ++i; } else { i = 1; } Mare_Stats(Mares[i - 1]); }; } instance Stats_Prev of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Previous'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Stats_Next of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Stats_MainText of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Stats_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 16 { function Mare_Gallery(Mare) { eval('IMG_' + Mare + '_Bulletin._visible') = true; l = Sys.Tag - eval(Mare + '.Day_Bought'); l -= eval(Mare + '.Days_Sick') + eval(Mare + '.Day_Bought') + eval(Mare + '.Times_Refused'); k = eval(Mare + '.Obediance') + eval(Mare + '.Endurance') + eval(Mare + '.Charisma'); k += eval(Mare + '.Skill') + eval(Mare + '.Attraction') + eval(Mare + '.Worth'); k -= eval(Mare + '.Rank') * 100; if (Sys.English == true) { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Race: ' + eval(Mare + '.Race') + ' \r' + 'Age: ' + eval(Mare + '.Age') + '\r' + 'Experience: ' + eval(Mare + '.Exp') + '\r' + 'Obediance: ' + eval(Mare + '.Obediance') + '\r' + 'Endurance: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Skill: ' + eval(Mare + '.Skill') + '\r' + 'Attraction: ' + eval(Mare + '.Attraction') + '\r' + 'Health: ' + eval(Mare + '.Health') + '\r' + 'Rank: ' + eval(Mare + '.Rank') + '\r' + 'Daily-Cost: ' + eval(Mare + '.Cost') + '\r' + 'Worth: ' + eval(Mare + '.Worth') + '\r\r' + 'Day-bought: ' + eval(Mare + '.Day_Bought') + '\r' + 'Days-Working: ' + l + '\r' + 'Days-Sick: ' + eval(Mare + '.Days_Sick') + '\r' + 'Days-Break: ' + eval(Mare + '.Days_Break') + '\r' + 'Days-Refused: ' + eval(Mare + '.Times_Refused') + '\r' + 'Bits-earned: ' + eval(Mare + '.Bits_Earned') + '\r' + 'Total-Cost: ' + eval(Mare + '.Total_Cost') + '\r' + 'Next-Rank: ' + k + '% \r' + 'Special-Pics: ' + eval(Mare + '.Special_Number') + '\r' + '</h1>'; } else { temp_2 = '<h1><b>' + eval(Mare + '.Name') + '</b><p> \r\r' + 'Rasse: ' + eval(Mare + '.Race') + ' \r' + 'Alter: ' + eval(Mare + '.Age') + '\r' + 'Erfahrung: ' + eval(Mare + '.Exp') + '\r' + 'Gehorsam: ' + eval(Mare + '.Obediance') + '\r' + 'Ausdauer: ' + eval(Mare + '.Endurance') + '\r' + 'Charisma: ' + eval(Mare + '.Charisma') + '\r' + 'Technik: ' + eval(Mare + '.Skill') + '\r' + 'Aussehen: ' + eval(Mare + '.Attraction') + '\r' + 'Gesundheit: ' + eval(Mare + '.Health') + '\r' + 'Rang: ' + eval(Mare + '.Rank') + '\r' + 'Tageskosten: ' + eval(Mare + '.Cost') + '\r' + 'Wert: ' + eval(Mare + '.Worth') + '\r\r</p>'; 'Kauftag: ' + eval(Mare + '.Day_Bought') + '\r' + 'Arbeitstage: ' + l + '\r' + 'Krankentage: ' + eval(Mare + '.Days_Sick') + '\r' + 'Pausentage: ' + eval(Mare + '.Days_Break') + '\r' + 'Streiktage: ' + eval(Mare + '.Times_Refused') + '\r' + 'Einnahmen: ' + eval(Mare + '.Bits_Earned') + '\r' + 'Ausgaben: ' + eval(Mare + '.Total_Cost') + '\r' + 'Aufstieg: ' + k + '% \r' + 'Special-Pics: ' + eval(Mare + '.Special_Number') + '\r' + '</h1>'; } Gallery_MainText.text = temp_2; } function Init_Gallery() { Init_Header(); _root.Gallery_MainText.depthChild0._alpha = 0; _root.Gallery_MainText.styleSheet = Stat_style; Gallery_Prev.setStyle('fontSize', 16); Gallery_Back.setStyle('fontSize', 16); Gallery_Next.setStyle('fontSize', 16); Gallery_Art_1.setStyle('fontSize', 16); Gallery_Art_2.setStyle('fontSize', 16); Gallery_Art_3.setStyle('fontSize', 16); Gallery_Art_4.setStyle('fontSize', 16); Gallery_Art_5.setStyle('fontSize', 16); Gallery_Artist.setStyle('fontSize', 14); if (Sys.English == false) { Gallery_Prev.label = 'Vorherige'; Gallery_Back.label = 'Zurück'; Gallery_Next.label = 'Nächste'; } } function Clear_Gallery() { eval('IMG_' + All_Mares[i - 1] + '_Bulletin._visible') = false; eval('IMG_' + All_Mares[i - 1] + '_NSFW_1._visible') = false; eval('IMG_' + All_Mares[i - 1] + '_NSFW_2._visible') = false; eval('IMG_' + All_Mares[i - 1] + '_NSFW_3._visible') = false; _root.IMG_Locked._visible = false; Gallery_Artist.visible = false; Special_Mare = eval(All_Mares[i - 1] + '.Special'); j = 0; while (j < Special_Mare.length) { eval('IMG_' + All_Mares[i - 1] + '_NSFW_' + Special_Mare[j] + '._visible') = false; ++j; } } Init_Gallery(); Mare_Gallery(All_Mares[i - 1]); stop(); Gallery_Artist.onRelease = function () { temp = eval(Current_Pic.Name + '.Link'); getURL(temp, '_blank'); }; Gallery_Prev.onRelease = function () { Clear_Gallery(); eval('IMG_' + All_Mares[i - 1] + '_Bulletin._visible') = false; Gallery_Artist.visible = false; if (i > 1) { --i; } else { i = All_Mares.length; } Mare_Gallery(All_Mares[i - 1]); RND = 0; if (eval(All_Mares[i - 1] + '.Special_Number') == 0 || eval(All_Mares[i - 1] + '.Special_Number') == undefined) { Gallery_Art_5.enabled = false; } else { Gallery_Art_5.enabled = true; Gallery_Art_5.label = 'Special 1'; } }; Gallery_Back.onRelease = function () { Eventname = 'Office'; gotoAndPlay(30); }; Gallery_Next.onRelease = function () { Clear_Gallery(); eval('IMG_' + All_Mares[i - 1] + '_Bulletin._visible') = false; Gallery_Artist.visible = false; if (i <= All_Mares.length - 1) { ++i; } else { i = 1; } Mare_Gallery(All_Mares[i - 1]); RND = 0; if (eval(All_Mares[i - 1] + '.Special_Number') == 0 || eval(All_Mares[i - 1] + '.Special_Number') == undefined) { Gallery_Art_5.enabled = false; } else { Gallery_Art_5.enabled = true; Gallery_Art_5.label = 'Special 1'; } }; Gallery_Art_1.onRelease = function () { Current_Pic.Name = All_Mares[i - 1] + '_Bulletin'; Clear_Gallery(); eval('IMG_' + All_Mares[i - 1] + '_Bulletin._visible') = true; Gallery_Artist.visible = false; }; Gallery_Art_2.onRelease = function () { Clear_Gallery(); if (eval(All_Mares[i - 1] + '_NSFW_1.Unlocked') == false) { _root.Gallery_Artist._visible = false; _root.IMG_Locked._visible = true; } else { eval('IMG_' + All_Mares[i - 1] + '_NSFW_1._visible') = true; Gallery_Artist.label = 'Artist: ' + eval(All_Mares[i - 1] + '_NSFW_1' + '.Artist'); Gallery_Artist.visible = true; } }; Gallery_Art_3.onRelease = function () { Clear_Gallery(); if (eval(All_Mares[i - 1] + '_NSFW_2.Unlocked') == false) { Gallery_Artist._visible = false; _root.IMG_Locked._visible = true; } else { eval('IMG_' + All_Mares[i - 1] + '_NSFW_2._visible') = true; Gallery_Artist.label = 'Artist: ' + eval(All_Mares[i - 1] + '_NSFW_2' + '.Artist'); Gallery_Artist.visible = true; } }; Gallery_Art_4.onRelease = function () { Clear_Gallery(); if (eval(All_Mares[i - 1] + '_NSFW_3.Unlocked') == false) { _root.Gallery_Artist._visible = false; _root.IMG_Locked._visible = true; } else { eval('IMG_' + All_Mares[i - 1] + '_NSFW_3._visible') = true; Gallery_Artist.label = 'Artist: ' + eval(All_Mares[i - 1] + '_NSFW_3' + '.Artist'); Gallery_Artist.visible = true; } }; Gallery_Art_5.onRelease = function () { Clear_Gallery(); Special_Mare = Special_Mare[RND]; Current_Pic.Name = All_Mares[i - 1] + '_NSFW_' + Special_Mare; Gallery_Artist.label = 'Artist: ' + eval(All_Mares[i - 1] + '_NSFW_' + Special_Mare + '.Artist'); Gallery_Artist.visible = true; Gallery_Art_5.label = 'Special ' + (RND + 1); if (eval(Current_Pic.Name + '.Unlocked') == false) { _root.Gallery_Artist._visible = false; _root.IMG_Locked._visible = true; } else { eval('IMG_' + Current_Pic.Name + '._visible') = true; Gallery_Artist.label = 'Artist: ' + eval(All_Mares[i - 1] + '_NSFW_' + Special_Mare + '.Artist'); Gallery_Artist.visible = true; } if (RND < eval(All_Mares[i - 1] + '.Special_Number') - 1) { ++RND; } else { RND = 0; } }; } instance Gallery_Prev of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Previous'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Next of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Next'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_MainText of movieClip 257 TextArea { onClipEvent (construct) { editable = true; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Art_1 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Normal'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Art_2 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Artwork 1'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Art_3 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Artwork 2'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Art_4 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Artwork 3'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Artist of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Artist:'; labelPlacement = 'left'; selected = false; toggle = false; enabled = true; visible = false; minHeight = 0; minWidth = 0; } } instance Gallery_Back of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Back'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance Gallery_Art_5 of movieClip 105 Button { onClipEvent (construct) { icon = ''; label = 'Special'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 30 { switch (Eventname) { case 'Haupt': gotoAndPlay(6); break; case 'Bulletin': gotoAndPlay(7); break; case 'Mares': gotoAndPlay(8); break; case 'buisness': gotoAndPlay(9); break; case 'Promotion': gotoAndPlay(10); break; case 'House': gotoAndPlay(11); break; case 'Save': gotoAndPlay(12); break; case 'Game Over': gotoAndPlay(13); break; case 'Office': gotoAndPlay(14); break; case 'Statistics': gotoAndPlay(15); break; case 'Gallery': gotoAndPlay(16); } }




http://swfchan.com/40/198270/info.shtml
Created: 12/10 -2018 20:00:02 Last modified: 12/10 -2018 20:00:02 Server time: 04/05 -2024 22:54:06