Combined Code
movieClip 2 {
}
movieClip 4 {
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 9 {
}
movieClip 12 {
}
movieClip 13 {
}
movieClip 16 {
}
movieClip 17 {
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 22 {
}
movieClip 25 {
}
movieClip 26 {
}
// unknown tag 88 length 96
movieClip 30 {
}
movieClip 31 Defaults {
#initclip
Object.registerClass('Defaults', mx.skins.halo.Defaults);
#endinitclip
}
movieClip 32 UIObjectExtensions {
#initclip
Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions);
#endinitclip
}
movieClip 33 UIObject {
#initclip
Object.registerClass('UIObject', mx.core.UIObject);
#endinitclip
frame 1 {
stop();
}
}
button 36 {
on (keyPress '<Tab>') {
this.tabHandler();
}
}
movieClip 38 BoundingBox {
}
movieClip 39 FocusRect {
#initclip
Object.registerClass('FocusRect', mx.skins.halo.FocusRect);
#endinitclip
}
movieClip 40 FocusManager {
#initclip
Object.registerClass('FocusManager', mx.managers.FocusManager);
#endinitclip
frame 1 {
stop();
}
}
movieClip 41 UIComponentExtensions {
#initclip
Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions);
#endinitclip
}
movieClip 42 UIComponent {
#initclip
Object.registerClass('UIComponent', mx.core.UIComponent);
#endinitclip
frame 1 {
stop();
}
}
movieClip 43 mloaderWindow {
#initclip
Object.registerClass('mloaderWindow', it.sephiroth.mloaderWindow);
#endinitclip
frame 1 {
stop();
}
}
movieClip 46 stain1 {
}
movieClip 49 stain2 {
}
movieClip 52 stain3 {
}
movieClip 55 stain4 {
}
movieClip 58 stain5 {
}
movieClip 61 stain6 {
}
movieClip 64 stain7 {
}
movieClip 67 stain8 {
}
movieClip 70 stain9 {
}
movieClip 73 stain10 {
}
movieClip 76 stain11 {
}
movieClip 79 stain12 {
}
movieClip 81 {
}
movieClip 82 padding {
}
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 TextArea {
#initclip
Object.registerClass('TextArea', mx.controls.TextArea);
#endinitclip
frame 1 {
stop();
}
}
movieClip 193 {
}
movieClip 194 RemotingClasses {
#initclip
Object.registerClass('RemotingClasses', mx.remoting.ApiClasses);
#endinitclip
frame 1 {
preview._visible = false;
stop();
}
}
movieClip 222 ProgBarCapThemeColor {
frame 1 {
mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor');
}
}
movieClip 224 ProgBarRight {
}
movieClip 227 ProgBarLeft {
}
movieClip 230 ProgBarMiddleThemeColor {
frame 1 {
mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor');
}
}
movieClip 232 ProgBarMiddle {
}
movieClip 235 ProgBarIndThemeColor {
frame 1 {
mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor');
}
}
movieClip 236 ProgBarIndMiddleThemeColor {
frame 1 {
mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor');
}
}
movieClip 238 ProgIndBar {
}
movieClip 240 ProgTrackLeft {
}
movieClip 242 ProgTrackMiddle {
}
movieClip 244 ProgTrackRight {
}
movieClip 245 ProgressBarAssets {
}
movieClip 246 ProgressBar {
#initclip
Object.registerClass('ProgressBar', mx.controls.ProgressBar);
#endinitclip
frame 1 {
stop();
}
}
frame 1 {
stop();
if (bytesLoaded == bytesTotal) {
play();
}
}
movieClip 83 __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;
mx.core.UIObject extends MovieClip;
var v2 = v1.prototype;
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 v3 = this.__width;
var v2 = this.__height;
this.__width = w;
this.__height = h;
this.size();
if (noEvent != true) {
this.dispatchEvent({'type': 'resize', 'oldWidth': v3, 'oldHeight': v2});
}
};
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 = mx.core.UIObject(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 169 __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;
mx.skins.SkinElement extends MovieClip;
var v2 = v1.prototype;
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 170 __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 172 __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 171 __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 176 __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 177 __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;
mx.events.UIEventDispatcher extends mx.events.EventDispatcher;
var v2 = v1.prototype;
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 186 __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 185 __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 84 __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;
mx.core.UIComponent extends mx.core.UIObject;
var v2 = v1.prototype;
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 373 __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 374 __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;
mx.skins.halo.FocusRect extends mx.skins.SkinElement;
var v2 = v1.prototype;
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 175 __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 v5 = 'down';
if (depthFlag == mx.managers.DepthManager.kBottom) {
v5 = 'up';
}
var v6;
if (v3[v2] != undefined) {
v6 = v2;
v2 = this.findNextAvailableDepth(v2, v3, v5);
}
var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj);
if (v6 != undefined) {
v3[v2] = v4;
this.shuffleDepths(v4, v6, v3, v5);
}
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 v5 = 'down';
if (depthFlag == mx.managers.DepthManager.kBottom) {
v5 = 'up';
}
var v6;
if (v3[v2] != undefined) {
v6 = v2;
v2 = this.findNextAvailableDepth(v2, v3, v5);
}
var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj);
if (v6 != undefined) {
v3[v2] = v4;
this.shuffleDepths(v4, v6, v3, v5);
}
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(MovieClip(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 v1 = targetDepth;
var v2 = targetDepth;
if (direction == 'down') {
while (depthTable[v2] != undefined) {
--v2;
}
return v2;
}
while (depthTable[v1] != undefined) {
++v1;
}
return v1;
};
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 375 __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;
mx.managers.FocusManager extends mx.core.UIComponent;
var v2 = v1.prototype;
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 = mx.controls.SimpleButton(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 181 __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;
mx.controls.SimpleButton extends mx.core.UIComponent;
var v2 = v1.prototype;
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 376 __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 377 __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 378 __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 379 __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 380 __Packages.it.sephiroth.mloaderWindow {
#initclip
if (!_global.it) {
_global.it = new Object();
}
if (!_global.it.sephiroth) {
_global.it.sephiroth = new Object();
}
if (!_global.it.sephiroth.mloaderWindow) {
var v1 = function () {
super();
this.progressBar = true;
this.ls_stage = new Object();
this.ls_stage.target = this;
this.ls_stage.onResize = function () {
if (this.target.centered) {
this.target.setPosition(Stage.width / 2 - (this.target.getSize())[0] / 2, Stage.height / 2 - (this.target.getSize())[1] / 2);
} else {
this.target.updateModalWindow();
}
};
Stage.addListener(this.ls_stage);
};
it.sephiroth.mloaderWindow = v1;
it.sephiroth.mloaderWindow extends mx.core.UIComponent;
var v2 = v1.prototype;
v2.init = function (Void) {
super.init();
mx.events.EventDispatcher.initialize(this);
this._x = Math.floor(this._x);
this._y = Math.floor(this._y);
this.label_txt.autoSize = 'left';
this.bar_fg = this.progress.bar_fg;
this.bar_fg._width = this.min_w;
this.modalWindow._visible = false;
this.modalWindow.onPress = function () {};
this.modalWindow.useHandCursor = false;
this.modalWindow._width = 0;
this.modalWindow._height = 0;
};
v2.draw = function () {
super.draw();
};
v2.createChildren = function (Void) {
super.createChildren();
};
v2.__set__value = function (obj) {
obj = Math.ceil(obj);
if (obj < 0) {
obj = 1;
}
if (obj > 100) {
obj = 100;
}
this.progress.bar_fg._width = (this.max_w / 100) * obj;
return this.__get__value();
};
v2.__get__value = function () {
return (this.bar_fg._width / this.max_w) * 100;
};
v2.__set__label = function (str) {
this.label_txt.text = str;
this.invalidate();
return this.__get__label();
};
v2.__get__label = function () {
return this.label_txt.text;
};
v2.__set__borderColor = function (str) {
var v5 = new Color(this.border_mc.border_up.line);
var v3 = new Color(this.border_mc.border_down.line);
var v2 = new Color(this.border_mc.border_middle.line);
v5.setRGB(str);
v3.setRGB(str);
v2.setRGB(str);
return this.__get__borderColor();
};
v2.open = function (modal, animate, center) {
if (modal == true) {
this.isModal = true;
} else {
this.isModal = false;
}
this.centered = center;
this.invalidate();
if (this.centered) {
this.setPosition(Stage.width / 2 - (this.getSize())[0] / 2, Stage.height / 2 - (this.getSize())[1] / 2);
}
var target_h = this.border_mc._height;
if (animate == true || animate == undefined) {
this.progress._visible = false;
this.label_txt._visible = false;
this.title_mc._visible = false;
this.shadow_mc._visible = false;
this.accSize(0);
this.border_mc.dy = 0;
this.border_mc.onEnterFrame = function () {
this.dy = (this.dy + (target_h - this._height) / 1.6) / 2.3;
this._parent.accSize(this._parent.height + this.dy);
if (Math.abs(this.dy) < 0.2) {
delete this.onEnterFrame;
this._parent.adjustContents();
this._parent.progress._visible = this._parent.progressBar;
this._parent.label_txt._visible = true;
this._parent.title_mc._visible = true;
this._parent.shadow_mc._visible = true;
this._parent.adjustShadow();
this._parent.dispatchEvent({'type': 'draw', 'target': this._parent});
}
};
} else {
this.invalidate();
this.dispatchEvent({'type': 'draw', 'target': this});
}
};
v2.close = function (delay) {
if (delay == undefined) {
delay = 0;
}
var t1 = getTimer();
this.border_mc.onEnterFrame = function () {
if (getTimer() - t1 > delay * 1000) {
this._parent.progress._visible = false;
this._parent.label_txt._visible = false;
this._parent.title_mc._visible = false;
this._parent.shadow_mc._visible = false;
delete this.onEnterFrame;
this.onEnterFrame = function () {
if (this._alpha < 0) {
delete this.onEnterFrame;
this._visible = false;
this._alpha = 100;
this._parent.dispatchEvent({'type': 'close', 'target': this._parent});
}
this._alpha -= 10;
};
}
};
};
v2.invalidate = function () {
var v2 = new Object();
this.adjustContents();
v2 = this.progress.getBounds(this.border_mc);
if (this.progressBar == false) {
this.progress._visible = false;
v2.yMax -= this.progress._height;
}
if (this.isModal) {
this.updateModalWindow();
} else {
this.modalWindow._visible = false;
}
this.border_mc.border_down._y = Math.floor(v2.yMax + 10) + 0.5;
this.border_mc.border_middle._height = this.border_mc.border_down._y - this.border_mc.border_middle._y;
this.adjustShadow();
};
v2.updateModalWindow = function () {
if (this.isModal) {
this.modalWindow._visible = true;
this.modalWindow._width = Stage.width;
this.modalWindow._height = Stage.height;
var v2 = new Object();
v2.x = this.border_mc._x;
v2.y = this.border_mc._y;
this.localToGlobal(v2);
var v3 = this._parent.getBounds(this.border_mc);
this.modalWindow._x = -v2.x + this.border_mc._x;
this.modalWindow._y = -v2.y + this.border_mc._y;
}
};
v2.adjustContents = function () {
var v2 = new Object();
v2 = this.border_mc.border_up.getBounds(this);
this.title_mc._y = Math.floor(v2.yMin + 20);
this.label_txt._y = Math.floor(this.title_mc._y + 16);
this.progress._y = Math.ceil(this.label_txt._y + this.label_txt.textHeight + 5);
};
v2.accSize = function (size) {
this.border_mc.border_up._y = -size / 2;
this.border_mc.border_down._y = this.border_mc.border_up._y + this.border_mc.border_up._height + size;
this.border_mc.border_middle._y = this.border_mc.border_up._y + this.border_mc.border_up._height;
this.border_mc.border_middle._height = this.border_mc.border_down._y - this.border_mc.border_middle._y;
};
v2.__get__height = function () {
return this.border_mc.border_down._y - this.border_mc.border_up._y - this.border_mc.border_up._height;
};
v2.adjustShadow = function () {
this.shadow_mc.shadow_up._y = this.border_mc.border_up._y + 4;
this.shadow_mc.shadow_down._y = this.border_mc.border_down._y + 4;
this.shadow_mc.shadow_middle._height = this.border_mc.border_middle._height;
this.shadow_mc.shadow_middle._y = this.border_mc.border_middle._y + 4;
};
v2.getSize = function () {
return [this.border_mc._x, this.border_mc._y];
};
v2.setPosition = function (x, y) {
this.modalWindow._width = 0;
this.modalWindow._height = 0;
this.modalWindow._x = this.border_mc._x;
this.modalWindow._y = this.border_mc._y;
this._x = Math.round(x - this.border_mc._x / 2);
this._y = Math.round(y - this.border_mc._y / 2);
this.updateModalWindow();
};
v1.symbolName = 'mloaderWindow';
v1.symbolOwner = it.sephiroth.mloaderWindow;
v2.className = 'it.sephiroth.mloaderWindow';
v2.max_w = 128;
v2.min_w = 1;
v2.addProperty('borderColor', function () {}, v2.__set__borderColor);
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('label', v2.__get__label, v2.__set__label);
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(it.sephiroth.mloaderWindow.prototype, null, 1);
}
#endinitclip
}
movieClip 381 __Packages.gs.TransformManager {
#initclip
if (!_global.gs) {
_global.gs = new Object();
}
if (!_global.gs.TransformManager) {
var v1 = function (vars) {
gs.utils.EventDispatcherAS2.initialize(this);
this.__set__eventHandler(vars.eventHandler);
this._allowDelete = gs.TransformManager.defaultBol(vars.allowDelete, false);
this._autoDeselect = gs.TransformManager.defaultBol(vars.autoDeselect, true);
this._constrainScale = gs.TransformManager.defaultBol(vars.constrainScale, false);
this._lockScale = gs.TransformManager.defaultBol(vars.lockScale, false);
this._scaleFromCenter = gs.TransformManager.defaultBol(vars.scaleFromCenter, false);
this._lockRotation = gs.TransformManager.defaultBol(vars.lockRotation, false);
this._lockPosition = gs.TransformManager.defaultBol(vars.lockPosition, false);
this._forceSelectionToFront = gs.TransformManager.defaultBol(vars.forceSelectionToFront, false);
this._lineColor = vars.lineColor || 3381759;
this._handleFillColor = vars.handleFillColor || 16777215;
this._handleSize = vars.handleSize || 8;
this._paddingForRotation = vars.paddingForRotation || 10;
if (vars.bounds != undefined) {
this._bounds = vars.bounds;
} else {
if (vars.xMax != undefined) {
this._bounds = {'xMax': vars.xMax, 'xMin': vars.xMin, 'yMax': vars.yMax, 'yMin': vars.yMin};
} else {
this._bounds = {};
}
}
this._enabled = true;
this._items_array = [];
if (vars.items.length > 0) {
this._items_array = vars.items;
} else {
if (vars.targetObjects.length > 0) {
this.addItems(vars.targetObjects);
}
}
};
gs.TransformManager = v1;
var v2 = v1.prototype;
v2.addItem = function (tgo, vars) {
if (vars.eventHandler != undefined) {
this.__set__eventHandler(vars.eventHandler);
}
if (vars.constrainScale != undefined) {
this.__set__constrainScale(vars.constrainScale);
}
if (vars.scaleFromCenter != undefined) {
this.__set__scaleFromCenter(vars.scaleFromCenter);
}
if (vars.lockScale != undefined) {
this.__set__lockScale(vars.lockScale);
}
if (vars.lockRotation != undefined) {
this.__set__lockRotation(vars.lockRotation);
}
if (vars.lockPosition != undefined) {
this.__set__lockPosition(vars.lockPosition);
}
if (vars.autoDeselect != undefined) {
this.__set__autoDeselect(vars.autoDeselect);
}
if (vars.allowDelete != undefined) {
this.__set__allowDelete(vars.allowDelete);
}
if (vars.bounds != undefined) {
this.__set__bounds(vars.bounds);
}
if (vars.enabled != undefined) {
this.__set__enabled(vars.enabled);
}
if (vars.forceSelectionToFront != undefined) {
this.__set__forceSelectionToFront(vars.forceSelectionToFront);
}
var v2 = 0;
while (v2 < this._items_array.length) {
if (this._items_array[v2].targetObject == tgo) {
return this._items_array[v2];
}
++v2;
}
if (tgo instanceof TextField) {
var v5 = new gs.TransformItemTF(tgo, {'eventHandler': mx.utils.Delegate.create(this, this.eventProxy), 'forceSelectionToFront': this._forceSelectionToFront, 'constrainScale': this._constrainScale, 'scaleFromCenter': this._scaleFromCenter, 'lockScale': this._lockScale, 'lockRotation': this._lockRotation, 'lockPosition': this._lockPosition, 'autoDeselect': this._autoDeselect, 'allowDelete': this._allowDelete, 'bounds': this._bounds}, this);
this._items_array.push(v5);
return v5;
}
v5 = new gs.TransformItem(tgo, {'eventHandler': mx.utils.Delegate.create(this, this.eventProxy), 'forceSelectionToFront': this._forceSelectionToFront, 'constrainScale': this._constrainScale, 'scaleFromCenter': this._scaleFromCenter, 'lockScale': this._lockScale, 'lockRotation': this._lockRotation, 'lockPosition': this._lockPosition, 'autoDeselect': this._autoDeselect, 'allowDelete': this._allowDelete, 'bounds': this._bounds}, this);
this._items_array.push(v5);
return v5;
};
v2.addItems = function (tgoa, vars) {
var v4 = [];
var v2 = 0;
while (v2 < tgoa.length) {
v4.push(this.addItem(tgoa[v2], vars));
++v2;
}
return v4;
};
v2.addAllEventsListener = function (handler) {
this.addEventListener('select', handler);
this.addEventListener('deselect', handler);
this.addEventListener('delete', handler);
this.addEventListener('clickOff', handler);
this.addEventListener('deleteKeyDown', handler);
this.addEventListener('scale', handler);
this.addEventListener('rotate', handler);
this.addEventListener('move', handler);
this._eventHandler = handler;
var v2 = 0;
while (v2 < this._items_array.length) {
this._items_array[v2].addAllEventsListener(mx.utils.Delegate.create(this, this.eventProxy));
++v2;
}
};
v2.removeAllEventsListener = function (handler) {
this.removeEventListener('select', handler);
this.removeEventListener('deselect', handler);
this.removeEventListener('delete', handler);
this.removeEventListener('clickOff', handler);
this.removeEventListener('deleteKeyDown', handler);
this.removeEventListener('scale', handler);
this.removeEventListener('rotate', handler);
this.removeEventListener('move', handler);
if (this.listeners.length == 0) {
this._eventHandler = undefined;
var v2 = 0;
while (v2 < this._items_array.length) {
this._items_array[v2].removeAllEventsListener(mx.utils.Delegate.create(this, this.eventProxy));
++v2;
}
}
};
v2.eventProxy = function (event_obj) {
event_obj.target = this;
this.dispatchEvent(event_obj.type, event_obj);
};
v2.select = function (ti) {
if (typeof ti == 'movieclip' || ti instanceof TextField) {
ti = this.getItemFromTargetObject(ti);
}
ti.select();
return ti;
};
v2.deselect = function () {
this._selectedItem.deselect();
};
v2.onSelectTransformItem = function (ti) {
if (ti != undefined) {
this._selectedItem.deselect();
this._selectedItem = ti;
}
};
v2.onDeselect = function (ti) {
if (ti == this._selectedItem) {
this._selectedItem = undefined;
}
};
v2.getItemFromTargetObject = function (targetObject) {
var v2 = 0;
while (v2 < this._items_array.length) {
if (this._items_array[v2].targetObject == targetObject) {
return this._items_array[v2];
}
++v2;
}
};
v2.reset = function () {
var v2 = 0;
while (v2 < this._items_array.length) {
this._items_array[v2].reset();
++v2;
}
};
v2.update = function () {
var v2 = 0;
while (v2 < this._items_array.length) {
this._items_array[v2].update();
++v2;
}
};
v2.removeItem = function (item_obj) {
if (typeof item_obj == 'movieclip' || item_obj instanceof TextField) {
var v3 = this.getItemFromTargetObject(item_obj);
} else {
var v3 = item_obj;
}
if (v3 == this._selectedItem) {
this._selectedItem.deselect(true);
}
var v2 = this._items_array.length - 1;
while (v2 >= 0) {
if (v3 == this._items_array[v2]) {
this._items_array[v2].destroy(true);
this._items_array.splice(v2, 1);
}
--v2;
}
};
v2.changePropertyForAllItems = function (property_str, value_obj) {
var v2 = 0;
while (v2 < this._items_array.length) {
this._items_array[v2][property_str] = value_obj;
++v2;
}
};
v1.defaultBol = function (b, default_bol) {
if (b == undefined) {
return default_bol;
} else {
return b;
}
};
v2.destroy = function () {
this._selectedItem.deselect();
var v2 = this._items_array.length - 1;
while (v2 >= 0) {
this._items_array[v2].destroy();
--v2;
}
gs.TransformManager.destroyInstance(this);
};
v1.destroyInstance = function (i) {
false;
};
v2.__get__enabled = function () {
return this._enabled;
};
v2.__set__enabled = function (b) {
this._enabled = b;
this.changePropertyForAllItems('enabled', b);
return this.__get__enabled();
};
v2.__get__items = function () {
return this._items_array;
};
v2.__get__targetObjects = function () {
var v3 = [];
var v2 = 0;
while (v2 < this._items_array.length) {
v3.push(this._items_array[v2].targetObject);
++v2;
}
return v3;
};
v2.__get__selectedTargetObject = function () {
return this._selectedItem.__get__targetObject();
};
v2.__get__selectedItem = function () {
return this._selectedItem;
};
v2.__set__eventHandler = function (f) {
if (this._eventHandler != f && f != undefined) {
this.removeAllEventsListener(this._eventHandler);
this.addAllEventsListener(f);
}
return this.__get__eventHandler();
};
v2.__get__eventHandler = function () {
return this._eventHandler;
};
v2.__set__constrainScale = function (b) {
this._constrainScale = b;
this.changePropertyForAllItems('constrainScale', b);
return this.__get__constrainScale();
};
v2.__get__constrainScale = function () {
return this._constrainScale;
};
v2.__set__lockScale = function (b) {
this._lockScale = b;
this.changePropertyForAllItems('lockScale', b);
return this.__get__lockScale();
};
v2.__get__lockScale = function () {
return this._lockScale;
};
v2.__set__scaleFromCenter = function (b) {
this._scaleFromCenter = b;
this.changePropertyForAllItems('scaleFromCenter', b);
return this.__get__scaleFromCenter();
};
v2.__get__scaleFromCenter = function () {
return this._scaleFromCenter;
};
v2.__set__lockRotation = function (b) {
this._lockRotation = b;
this.changePropertyForAllItems('lockRotation', b);
return this.__get__lockRotation();
};
v2.__get__lockRotation = function () {
return this._lockRotation;
};
v2.__set__lockPosition = function (b) {
this._lockPosition = b;
this.changePropertyForAllItems('lockPosition', b);
return this.__get__lockPosition();
};
v2.__get__lockPosition = function () {
return this._lockPosition;
};
v2.__set__allowDelete = function (b) {
this._allowDelete = b;
this.changePropertyForAllItems('allowDelete', b);
return this.__get__allowDelete();
};
v2.__get__allowDelete = function () {
return this._allowDelete;
};
v2.__set__autoDeselect = function (b) {
this._autoDeselect = b;
this.changePropertyForAllItems('autoDeselect', b);
return this.__get__autoDeselect();
};
v2.__get__autoDeselect = function () {
return this._autoDeselect;
};
v2.__set__lineColor = function (n) {
this._lineColor = n;
this.changePropertyForAllItems('lineColor', n);
return this.__get__lineColor();
};
v2.__get__lineColor = function () {
return this._lineColor;
};
v2.__set__handleFillColor = function (n) {
this._handleFillColor = n;
this.changePropertyForAllItems('handleFillColor', n);
return this.__get__handleFillColor();
};
v2.__get__handleFillColor = function () {
return this._handleFillColor;
};
v2.__set__handleSize = function (n) {
this._handleSize = n;
this.changePropertyForAllItems('handleSize', n);
return this.__get__handleSize();
};
v2.__get__handleSize = function () {
return this._handleSize;
};
v2.__set__paddingForRotation = function (n) {
this._paddingForRotation = n;
this.changePropertyForAllItems('paddingForRotation', n);
return this.__get__paddingForRotation();
};
v2.__get__paddingForRotation = function () {
return this._paddingForRotation;
};
v2.__set__bounds = function (o) {
if (!isNaN(o.xMax) && !isNaN(o.xMin) && !isNaN(o.yMax) && !isNaN(o.yMin)) {
this._bounds = o;
this.changePropertyForAllItems('bounds', o);
} else {
trace('ERROR: illegal bounds property for a TransformManager. The bounds property must have valid xMax, xMin, yMax, and yMin properties.');
}
return this.__get__bounds();
};
v2.__get__bounds = function () {
return this._bounds;
};
v2.__get__forceSelectionToFront = function () {
return this._forceSelectionToFront;
};
v2.__set__forceSelectionToFront = function (b) {
this._forceSelectionToFront = b;
this.changePropertyForAllItems('forceSelectionToFront', b);
return this.__get__forceSelectionToFront();
};
v2.getItemFromMC = gs.TransformManager.prototype.getItemFromTargetObject;
v2.addProperty('allowDelete', v2.__get__allowDelete, v2.__set__allowDelete);
v2.addProperty('autoDeselect', v2.__get__autoDeselect, v2.__set__autoDeselect);
v2.addProperty('bounds', v2.__get__bounds, v2.__set__bounds);
v2.addProperty('constrainScale', v2.__get__constrainScale, v2.__set__constrainScale);
v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled);
v2.addProperty('eventHandler', v2.__get__eventHandler, v2.__set__eventHandler);
v2.addProperty('forceSelectionToFront', v2.__get__forceSelectionToFront, v2.__set__forceSelectionToFront);
v2.addProperty('handleFillColor', v2.__get__handleFillColor, v2.__set__handleFillColor);
v2.addProperty('handleSize', v2.__get__handleSize, v2.__set__handleSize);
v2.addProperty('items', v2.__get__items, function () {});
v2.addProperty('lineColor', v2.__get__lineColor, v2.__set__lineColor);
v2.addProperty('lockPosition', v2.__get__lockPosition, v2.__set__lockPosition);
v2.addProperty('lockRotation', v2.__get__lockRotation, v2.__set__lockRotation);
v2.addProperty('lockScale', v2.__get__lockScale, v2.__set__lockScale);
v2.addProperty('paddingForRotation', v2.__get__paddingForRotation, v2.__set__paddingForRotation);
v2.addProperty('scaleFromCenter', v2.__get__scaleFromCenter, v2.__set__scaleFromCenter);
v2.addProperty('selectedItem', v2.__get__selectedItem, function () {});
v2.addProperty('selectedTargetObject', v2.__get__selectedTargetObject, function () {});
v2.addProperty('targetObjects', v2.__get__targetObjects, function () {});
ASSetPropFlags(gs.TransformManager.prototype, null, 1);
}
#endinitclip
}
movieClip 382 __Packages.gs.TransformItem {
#initclip
if (!_global.gs) {
_global.gs = new Object();
}
if (!_global.gs.TransformItem) {
var v1 = function (mc, vars, manager) {
gs.utils.EventDispatcherAS2.initialize(this);
this._targetObject = mc;
this.constrainScale = gs.TransformItem.defaultBol(vars.constrainScale, false);
this.lockScale = gs.TransformItem.defaultBol(vars.lockScale, false);
this.lockRotation = gs.TransformItem.defaultBol(vars.lockRotation, false);
this.lockPosition = gs.TransformItem.defaultBol(vars.lockPosition, false);
this.autoDeselect = gs.TransformItem.defaultBol(vars.autoDeselect, true);
this.constrainScale = gs.TransformItem.defaultBol(vars.constrainScale, false);
this.scaleFromCenter = gs.TransformItem.defaultBol(vars.scaleFromCenter, false);
this.lockScale = gs.TransformItem.defaultBol(vars.lockScale, false);
this.lockRotation = gs.TransformItem.defaultBol(vars.lockRotation, false);
this.lockPosition = gs.TransformItem.defaultBol(vars.lockPosition, false);
this.allowDelete = gs.TransformItem.defaultBol(vars.allowDelete, false);
this.forceSelectionToFront = vars.forceSelectionToFront;
if (vars.bounds != undefined) {
this._bounds = vars.bounds;
} else {
if (vars.xMax != undefined) {
this._bounds = {'xMax': vars.xMax, 'xMin': vars.xMin, 'yMax': vars.yMax, 'yMin': vars.yMin};
} else {
this._bounds = {};
}
}
this.__set__eventHandler(vars.eventHandler);
this._oldOnPress = this._targetObject.onPress;
this._oldOnRelease = this._targetObject.onRelease;
this._oldOnReleaseOutside = this._targetObject.onReleaseOutside;
this._targetObject.useHandCursor = false;
gs.TransformItem.buildRotationCursor();
gs.TransformItem.buildScaleCursor();
this._handles_array = [];
this._originalState = {};
this._mode = 0;
this._selected = false;
this.resetCenterPoint();
this.resetStartProps();
this.resetBaseProps();
this.setAxis(this.__get__centerX(), this.__get__centerY());
Key.addListener(this);
if (manager != undefined) {
this._manager = manager;
this._lineColor = this._manager.lineColor;
this._handleFillColor = this._manager.handleFillColor;
this._handleSize = this._manager.handleSize;
this._paddingForRotation = this._manager.paddingForRotation;
this.__set__enabled(this._manager.enabled);
} else {
this._lineColor = vars.lineColor || 3381759;
this._handleFillColor = vars.handleFillColor || 16777215;
this._handleSize = vars.handleSize || 8;
this._paddingForRotation = vars.paddingForRotation || 10;
this.__set__enabled(gs.TransformItem.defaultBol(vars.enabled, true));
}
if (gs.TransformItem._items_array == undefined) {
gs.TransformItem._items_array = [];
}
gs.TransformItem._items_array.push(this);
};
gs.TransformItem = v1;
var v2 = v1.prototype;
v2.resetBaseProps = function () {
this._originalState._rotation = this._targetObject._rotation;
this._originalState._xscale = this._targetObject._xscale;
this._originalState._yscale = this._targetObject._yscale;
this._originalState._x = this._targetObject._x;
this._originalState._y = this._targetObject._y;
this._targetObject._rotation = 0;
this._targetObject._xscale = 100;
this._targetObject._yscale = 100;
this._baseWidth = this._targetObject._width;
this._baseHeight = this._targetObject._height;
this._targetObject._rotation = this._originalState._rotation;
this._targetObject._xscale = this._originalState._xscale;
this._targetObject._yscale = this._originalState._yscale;
};
v2.reset = function () {
this._targetObject._rotation = this._originalState._rotation;
this._targetObject._xscale = this._originalState._xscale;
this._targetObject._yscale = this._originalState._yscale;
this._targetObject._x = this._originalState._x;
this._targetObject._y = this._originalState._y;
this.update();
};
v2.resetStartProps = function () {
delete this._startProps;
this._startProps = {};
var v2 = this._startProps;
var v3 = this.__get__axisPoint();
var v7 = this._targetObject._parent._xmouse - v3.x;
var v6 = v3.y - this._targetObject._parent._ymouse;
var v5 = Math.sqrt(v7 * v7 + v6 * v6);
var v10 = Math.atan2(v6, v7);
var v9 = this._targetObject._x - v3.x;
var v8 = v3.y - this._targetObject._y;
var v12 = this._targetObject._rotation * 0.0174532925199433;
var v11 = v10 + v12;
v2.centerX = this.centerX;
v2.centerY = this.centerY;
v2.axisX = v3.x;
v2.axisY = v3.y;
v2._x = this._targetObject._x;
v2._y = this._targetObject._y;
v2._xscale = this._targetObject._xscale;
v2._yscale = this._targetObject._yscale;
v2._rotation = this._targetObject._rotation;
v2.angle = v12;
v2._xmouse = this._targetObject._parent._xmouse;
v2._ymouse = this._targetObject._parent._ymouse;
v2.angleAxisToMouse = (v10 + 6.283185307179586) % 6.283185307179586;
v2.distAxisToMouseX = Math.cos(v11) * v5;
v2.distAxisToMouseY = Math.sin(v11) * v5;
v2.distAxisToMouse = v5;
v2.distRegToCenterX = this._targetObject._x - v2.centerX;
v2.distRegToCenterY = this._targetObject._y - v2.centerY;
v2.distAxisToReg = Math.sqrt(v9 * v9 + v8 * v8);
v2.angleAxisToReg = Math.atan2(v8, v9);
if (this._bounds.xMax != undefined) {
var v4 = this._targetObject.getBounds(this._targetObject._parent);
v2.xMin = this._bounds.xMin + (this._targetObject._x - v4.xMin);
v2.xMax = this._bounds.xMax - (v4.xMax - this._targetObject._x);
v2.yMin = this._bounds.yMin + (this._targetObject._y - v4.yMin);
v2.yMax = this._bounds.yMax - (v4.yMax - this._targetObject._y);
v2.angleAxisToTL = (Math.atan2(this._bounds.yMin - v3.y, this._bounds.xMin - v3.x) + 12.56637061435917) % 6.283185307179586;
v2.angleAxisToTR = (Math.atan2(this._bounds.yMin - v3.y, this._bounds.xMax - v3.x) + 12.56637061435917) % 6.283185307179586;
v2.angleAxisToBR = (Math.atan2(this._bounds.yMax - v3.y, this._bounds.xMax - v3.x) + 12.56637061435917) % 6.283185307179586;
v2.angleAxisToBL = (Math.atan2(this._bounds.yMax - v3.y, this._bounds.xMin - v3.x) + 12.56637061435917) % 6.283185307179586;
}
};
v2.resetCenterPoint = function () {
var v6 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v3 = this._targetObject.getBounds(this._targetObject._parent);
var v11 = (v3.xMax + v3.xMin) / 2;
var v9 = (v3.yMax + v3.yMin) / 2;
var v5 = v11 - this._targetObject._x;
var v4 = this._targetObject._y - v9;
var v7 = Math.sqrt(v5 * v5 + v4 * v4);
var v10 = Math.atan2(v4, v5);
var v8 = v6 * 0.0174532925199433 - v10;
var v13 = this._targetObject._x + Math.cos(v8) * v7;
var v12 = this._targetObject._y + Math.sin(v8) * v7;
this._targetObject._rotation = v6;
var v2 = {'x': v13, 'y': v12};
this._targetObject._parent.localToGlobal(v2);
this._targetObject.globalToLocal(v2);
this._localCenterX = v2.x;
this._localCenterY = v2.y;
};
v2.setAxis = function (x, y) {
var v2 = {'x': x, 'y': y};
this._targetObject._parent.localToGlobal(v2);
this._targetObject.globalToLocal(v2);
this._localAxisX = v2.x;
this._localAxisY = v2.y;
};
v2.renderHandles = function () {
var v5 = this.getDistanceToHandles();
var v9 = this._targetObject._rotation * 0.0174532925199433;
var v4 = this._selection_mc;
var v6 = this.__get__centerPoint();
v4._x = v6.x;
v4._y = v6.y;
v4.center_mc.clear();
v4.center_mc.lineStyle(1, this._lineColor);
var v8 = Math.cos(this._handles_array[3].angleOffset) * v5;
var v7 = Math.sin(this._handles_array[3].angleOffset) * v5;
v4.center_mc.moveTo(v8, v7);
var v3 = 0;
while (v3 < 4) {
var v2 = this._handles_array[v3];
v2.mc._x = Math.cos(v2.angleOffset) * v5;
v2.mc._y = Math.sin(v2.angleOffset) * v5;
v2.mc._rotation = Math.floor(v2.angleOffset / 1.570796326794897) * 90;
v4.center_mc.lineTo(v2.mc._x, v2.mc._y);
++v3;
}
v4.tl_mc.edge_mc._height = v4.bl_mc._y - v4.tl_mc._y;
v4.tr_mc.edge_mc._height = v4.tr_mc._x - v4.tl_mc._x;
v4.br_mc.edge_mc._height = v4.br_mc._y - v4.tr_mc._y;
v4.bl_mc.edge_mc._height = v4.br_mc._x - v4.bl_mc._x;
v4._rotation = this._targetObject._rotation;
};
v2.onPressSelect = function () {
if (this._oldOnPress != undefined) {
this._oldOnPress();
}
this.select();
this.onPressMove();
};
v2.update = function () {
this.resetBaseProps();
this.resetCenterPoint();
this.resetStartProps();
this.resetHandleAngles();
this.renderHandles();
if (this._selected) {
this._selection_mc.swapDepths(gs.TransformItem.findNextHighestDepth(this._selection_mc._parent));
}
};
v2.bringToFront = function () {
this._targetObject.swapDepths(gs.TransformItem.findNextHighestDepth(this._targetObject._parent));
if (this._selected) {
this._selection_mc.swapDepths(gs.TransformItem.findNextHighestDepth(this._selection_mc._parent));
}
};
v2.select = function () {
if (!this._selected) {
this.showHandles();
this.onKeyDown = mx.utils.Delegate.create(this, this.onKeyDownCheck);
this.onKeyUp = mx.utils.Delegate.create(this, this.onKeyUpCheck);
if (this._targetObject.hitTest(_root._xmouse, _root._ymouse, true)) {
this.onPressMove();
} else {
this.resetStartProps();
}
this._selected = true;
if (this.forceSelectionToFront) {
this.bringToFront();
}
this.dispatchEvent('select', {'target': this, 'type': 'select', 'action': 'select', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
this._manager.onSelectTransformItem(this);
}
};
v1.checkAllForDeselect = function () {
var v2 = gs.TransformItem._items_array.length;
var v1 = 0;
while (v1 < v2) {
gs.TransformItem._items_array[v1].checkForDeselect();
++v1;
}
};
v2.checkForDeselect = function () {
if (this._selected) {
if (this._selection_mc.hitTest(_root._xmouse, _root._ymouse, true) || this._targetObject.hitTest(_root._xmouse, _root._ymouse, true)) {
return undefined;
} else {
if (this.autoDeselect) {
this.deselect();
} else {
if (this._manager.selectedItem != undefined || this._manager == undefined) {
this.dispatchEvent('clickOff', {'target': this, 'type': 'clickOff', 'action': 'clickOff', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
}
}
};
v2.deselect = function (skipEvent) {
if (this._selected) {
this._selection_mc._visible = false;
this._selected = false;
this.onKeyDown = undefined;
this.onKeyUp = undefined;
this._manager.onDeselect(this);
if (skipEvent != true) {
this.dispatchEvent('deselect', {'target': this, 'type': 'deselect', 'action': 'deselect', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
};
v2.onKeyUpCheck = function () {
if (Key.getCode() == 16) {
if (this._mode == 1) {
this.onMouseMoveScale();
this.resetHandleAngles();
} else {
if (this._mode == 2) {
this.onMouseMoveRotate();
}
}
this.onKeyDown = mx.utils.Delegate.create(this, this.onKeyDownCheck);
}
};
v2.onKeyDownCheck = function () {
if (Key.getCode() == 16) {
if (this._mode == 1) {
this.onMouseMoveScale();
this.resetHandleAngles();
this.renderHandles();
} else {
if (this._mode == 2) {
this.onMouseMoveRotate();
}
}
this.onKeyDown = undefined;
} else {
if ((Key.getCode() == 46 || Key.getCode() == 8) && this._selected) {
if (this.allowDelete) {
this.deleteItem();
} else {
this.dispatchEvent('deleteKeyDown', {'target': this, 'type': 'deleteKeyDown', 'action': 'deleteKeyDown', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
}
};
v2.deleteItem = function () {
this._targetObject.swapDepths(gs.TransformItem.findNextHighestDepth(this._targetObject._parent));
this._targetObject.removeMovieClip();
gs.TransformItem._rotationCursor._visible = false;
gs.TransformItem._scaleCursor._visible = gs.TransformItem._rotationCursor._visible;
Mouse.show();
if (this._manager == undefined) {
this.destroy();
} else {
this._manager.removeItem(this);
}
this.dispatchEvent('delete', {'target': this, 'type': 'delete', 'action': 'delete', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
};
v2.onPressMove = function () {
if (!this.lockPosition) {
this.resetStartProps();
this._selection_mc.onMouseMove = mx.utils.Delegate.create(this, this.onMouseMoveMove);
this.onMouseMoveMove();
}
};
v2.onMouseMoveMove = function () {
var v2 = this._startProps;
var v4 = this._targetObject._parent._xmouse - v2._xmouse;
var v3 = this._targetObject._parent._ymouse - v2._ymouse;
if (!Key.isDown(16)) {
this._targetObject._x = v2._x + v4;
this._targetObject._y = v2._y + v3;
} else {
if (Math.abs(v4) > Math.abs(v3)) {
this._targetObject._x = v2._x + v4;
this._targetObject._y = v2._y;
} else {
this._targetObject._y = v2._y + v3;
this._targetObject._x = v2._x;
}
}
if (this._bounds.xMax != undefined) {
this._targetObject._x = Math.max(v2.xMin, Math.min(this._targetObject._x, v2.xMax));
this._targetObject._y = Math.max(v2.yMin, Math.min(this._targetObject._y, v2.yMax));
}
this._selection_mc._x = this._targetObject._x - v2.distRegToCenterX;
this._selection_mc._y = this._targetObject._y - v2.distRegToCenterY;
updateAfterEvent();
};
v2.onReleaseMove = function () {
if (!this.lockPosition) {
this._selection_mc.onMouseMove = undefined;
if (this._startProps._x != this._targetObject._x || this._startProps._y != this._targetObject._y) {
this.resetStartProps();
this.dispatchEvent('move', {'target': this, 'type': 'move', 'action': 'move', 'transformed': true, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
if (this._oldOnRelease != undefined) {
this._oldOnRelease();
}
};
v2.onRollOverScale = function () {
if (!this.lockScale) {
Mouse.hide();
gs.TransformItem._scaleCursor.onMouseMove = mx.utils.Delegate.create(this, this.snapCursorScale);
var v3 = this._targetObject._parent._xmouse - this.__get__centerX();
var v4 = this.__get__centerY() - this._targetObject._parent._ymouse;
var v5 = -(Math.atan2(v4, v3) - 0.7853981633974483);
gs.TransformItem._scaleCursor._rotation = v5 * 57.29577951308232;
gs.TransformItem._scaleCursor._visible = true;
gs.TransformItem._scaleCursor.swapDepths(gs.TransformItem.findNextHighestDepth(_root));
this.snapCursorScale();
}
};
v2.onRollOutScale = function () {
if (!this.lockScale) {
gs.TransformItem._scaleCursor.onMouseMove = undefined;
gs.TransformItem._scaleCursor._visible = false;
Mouse.show();
}
};
v2.onPressScale = function () {
if (!this.lockScale) {
this._mode = 1;
this.setScaleAxis();
this.resetStartProps();
this._selection_mc.onMouseMove = mx.utils.Delegate.create(this, this.onMouseMoveScale);
this.onMouseMoveScale();
}
};
v2.setScaleAxis = function () {
if (this.scaleFromCenter) {
this.setAxis(this.__get__centerX(), this.__get__centerY());
} else {
var v5 = 0;
while (v5 < 4) {
var v3 = this._handles_array[v5].mc;
if (v3.hitTest(_root._xmouse, _root._ymouse, true)) {
var v6 = (v5 + 2) % 4;
v3 = this._handles_array[v6].mc;
var v4 = {'x': v3._x, 'y': v3._y};
v3._parent.localToGlobal(v4);
this._targetObject._parent.globalToLocal(v4);
this.setAxis(v4.x, v4.y);
break;
}
++v5;
}
}
};
v2.onMouseMoveScale = function () {
var v5 = this._startProps;
var v7 = this._targetObject._parent._xmouse - v5.axisX;
var v6 = v5.axisY - this._targetObject._parent._ymouse;
var v15 = Math.sqrt(v7 * v7 + v6 * v6);
var v17 = Math.atan2(v6, v7);
if (Key.isDown(16) || this.constrainScale) {
var v18 = (v17 - v5.angleAxisToMouse + 10.99557428756428) % 6.283185307179586;
if (v18 < Math.PI) {
v15 *= -1;
}
this._targetObject._xscale = (v5._xscale / v5.distAxisToMouse) * v15;
this._targetObject._yscale = (v5._yscale / v5.distAxisToMouse) * v15;
} else {
v17 += v5.angle;
this._targetObject._xscale = (v5._xscale / v5.distAxisToMouseX) * Math.cos(v17) * v15;
this._targetObject._yscale = (v5._yscale / v5.distAxisToMouseY) * Math.sin(v17) * v15;
this.resetHandleAngles();
}
var v14 = {'x': this._localAxisX, 'y': this._localAxisY};
this._targetObject.localToGlobal(v14);
this._targetObject._parent.globalToLocal(v14);
this._targetObject._x -= v14.x - v5.axisX;
this._targetObject._y -= v14.y - v5.axisY;
if (this._bounds.xMax != undefined) {
var v16 = this._targetObject.getBounds(this._targetObject._parent);
if (v16.xMax > this._bounds.xMax || v16.xMin < this._bounds.xMin || v16.yMax > this._bounds.yMax || v16.yMin < this._bounds.yMin) {
this.renderHandles();
var v3;
var v8;
var v13;
var v11 = 1;
var v4 = this.__get__axisPoint();
var v12 = {'x': Math.round(v4.x), 'y': Math.round(v4.y)};
var v10;
var v2;
var v9 = 0;
while (v9 < this._handles_array.length) {
v10 = this._handles_array[v9];
v2 = {'x': v10.mc._x, 'y': v10.mc._y};
v10.mc._parent.localToGlobal(v2);
this._targetObject._parent.globalToLocal(v2);
v2.x = Math.round(v2.x);
v2.y = Math.round(v2.y);
if (!(Math.abs(v2.x - v4.x) < 1 && Math.abs(v2.y - v4.y) < 1)) {
v3 = (Math.atan2(v2.y - v12.y, v2.x - v12.x) + 12.56637061435917) % 6.283185307179586;
v7 = v4.x - v2.x;
v6 = v4.y - v2.y;
v13 = Math.sqrt(v7 * v7 + v6 * v6);
if (v3 <= v5.angleAxisToBR || v5.angleAxisToTR >= 4.71238898038469 && v3 >= v5.angleAxisToTR) {
v7 = this._bounds.xMax - v4.x;
v8 = v7 / Math.cos(v3);
} else {
if (v3 <= v5.angleAxisToBL) {
v6 = this._bounds.yMax - v4.y;
v8 = v6 / Math.sin(v3);
} else {
if (v3 <= v5.angleAxisToTL) {
v7 = v4.x - this._bounds.xMin;
v8 = v7 / Math.cos(v3);
} else {
v6 = v4.y - this._bounds.yMin;
v8 = v6 / Math.sin(v3);
}
}
}
if (v8 != 0) {
v11 = Math.min(v11, Math.abs(v8) / v13);
}
}
++v9;
}
this._targetObject._xscale *= v11;
this._targetObject._yscale *= v11;
v14 = {'x': this._localAxisX, 'y': this._localAxisY};
this._targetObject.localToGlobal(v14);
this._targetObject._parent.globalToLocal(v14);
this._targetObject._x -= v14.x - v5.axisX;
this._targetObject._y -= v14.y - v5.axisY;
}
}
this.renderHandles();
updateAfterEvent();
};
v2.onReleaseScale = function () {
if (!this.lockScale) {
this._mode = 0;
this._selection_mc.onMouseMove = undefined;
this.resetStartProps();
this.dispatchEvent('scale', {'target': this, 'type': 'scale', 'action': 'scale', 'transformed': true, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
};
v2.onReleaseOutsideScale = function () {
this.onRollOutScale();
this.onReleaseScale();
};
v2.snapCursorScale = function () {
gs.TransformItem._scaleCursor._x = _root._xmouse;
gs.TransformItem._scaleCursor._y = _root._ymouse;
updateAfterEvent();
};
v2.onRollOverRotate = function () {
if (!this.lockRotation) {
Mouse.hide();
gs.TransformItem._rotationCursor.onMouseMove = mx.utils.Delegate.create(this, this.snapCursorRotate);
gs.TransformItem._rotationCursor._visible = true;
gs.TransformItem._rotationCursor.swapDepths(gs.TransformItem.findNextHighestDepth(_root));
this.snapCursorRotate();
}
};
v2.onRollOutRotate = function () {
if (!this.lockRotation) {
gs.TransformItem._rotationCursor.onMouseMove = undefined;
gs.TransformItem._rotationCursor._visible = false;
Mouse.show();
}
};
v2.onPressRotate = function () {
if (!this.lockRotation) {
this._mode = 2;
this.setAxis(this.__get__centerX(), this.__get__centerY());
this.resetStartProps();
this._selection_mc.onMouseMove = mx.utils.Delegate.create(this, this.onMouseMoveRotate);
this.onMouseMoveRotate();
}
};
v2.onMouseMoveRotate = function () {
var v2 = this._startProps;
var v5 = {'_x': this._targetObject._x, '_y': this._targetObject._y, '_rotation': this._targetObject._rotation};
var v7 = this._targetObject._parent._xmouse - v2.centerX;
var v6 = v2.centerY - this._targetObject._parent._ymouse;
var v4 = v2.angleAxisToMouse - Math.atan2(v6, v7);
var v8 = v2.angle + v4;
this._targetObject._rotation = v8 * 57.29577951308232;
if (Key.isDown(16)) {
this._targetObject._rotation = Math.round(this._targetObject._rotation / 45) * 45;
v4 = this._targetObject._rotation * 0.0174532925199433 - v2.angle;
}
this._targetObject._x = v2.centerX + Math.cos(v4 - v2.angleAxisToReg) * v2.distAxisToReg;
this._targetObject._y = v2.centerY + Math.sin(v4 - v2.angleAxisToReg) * v2.distAxisToReg;
if (this._bounds.xMax != undefined) {
var v3 = this._targetObject.getBounds(this._targetObject._parent);
if (v3.xMax > this._bounds.xMax || v3.xMin < this._bounds.xMin || v3.yMax > this._bounds.yMax || v3.yMin < this._bounds.yMin) {
this._targetObject._rotation = v5._rotation;
this._targetObject._x = v5._x;
this._targetObject._y = v5._y;
}
}
this._selection_mc._rotation = this._targetObject._rotation;
updateAfterEvent();
};
v2.onReleaseRotate = function () {
if (!this.lockRotation) {
this._mode = 0;
this._selection_mc.onMouseMove = undefined;
this.resetStartProps();
this.dispatchEvent('rotate', {'target': this, 'type': 'rotate', 'action': 'rotate', 'transformed': true, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
};
v2.onReleaseOutsideRotate = function () {
this.onRollOutRotate();
this.onReleaseRotate();
};
v2.snapCursorRotate = function () {
gs.TransformItem._rotationCursor._x = _root._xmouse;
gs.TransformItem._rotationCursor._y = _root._ymouse;
updateAfterEvent();
};
v2.showHandles = function () {
if (this._selection_mc == undefined) {
this.initHandles(this._lineColor, this._handleFillColor, this._handleSize, this._paddingForRotation);
} else {
this._selection_mc.swapDepths(gs.TransformItem.findNextHighestDepth(this._selection_mc._parent));
this.resetHandleAngles();
this.renderHandles();
}
this._targetObject.useHandCursor = false;
this._selection_mc._visible = true;
};
v2.initHandles = function () {
var v3 = false;
if (this._selection_mc != undefined) {
v3 = this._selection_mc._visible;
this._selection_mc.removeMovieClip();
}
var v2 = gs.TransformItem.findNextHighestDepth(this._targetObject._parent);
this._selection_mc = this._targetObject._parent.createEmptyMovieClip('selection' + v2 + '_mc', v2);
this._selection_mc.createEmptyMovieClip('edges_mc', 0);
this._selection_mc.createEmptyMovieClip('center_mc', 1);
var v4 = this._selection_mc.createEmptyMovieClip('m_mc', 2);
gs.TransformItem.box(v4, -(this._handleSize / 2), -(this._handleSize / 2), this._handleSize, this._handleSize, this._handleFillColor, 100, 1, this._lineColor, 100);
var v8 = this.buildHandle(this._selection_mc, 'tl_mc', 180, 3);
var v6 = this.buildHandle(this._selection_mc, 'tr_mc', -90, 4);
var v7 = this.buildHandle(this._selection_mc, 'br_mc', 0, 5);
var v5 = this.buildHandle(this._selection_mc, 'bl_mc', 90, 6);
this._handles_array = [{'mc': v8, 'dir': '_y', 'prtnr': 3}, {'mc': v6, 'dir': '_x', 'prtnr': 0}, {'mc': v7, 'dir': '_y', 'prtnr': 1}, {'mc': v5, 'dir': '_x', 'prtnr': 2}];
this._selection_mc._visible = v3;
this.resetHandleAngles();
this.renderHandles();
};
v2.buildHandle = function (parent_mc, name_str, rotation_num, level_num) {
var v5 = parent_mc.createEmptyMovieClip(name_str, level_num);
var v4 = v5.createEmptyMovieClip('edge_mc', 0);
gs.TransformItem.box(v4, -7, -100, 14, 100, 0, 0);
var v3 = v5.createEmptyMovieClip('rotate_mc', 1);
var v6 = this._handleSize + this._paddingForRotation;
gs.TransformItem.box(v3, 0, 0, v6, v6, 0, 0);
var v2 = v5.createEmptyMovieClip('scale_mc', 2);
gs.TransformItem.box(v2, 0, 0, this._handleSize, this._handleSize, this._handleFillColor, 100, 1, this._lineColor, 100);
v5._rotation = rotation_num;
v4.onPress = mx.utils.Delegate.create(this, this.onPressSelect);
v4.onReleaseOutside = mx.utils.Delegate.create(this, this.onReleaseMove);
v4.onRelease = v4.onReleaseOutside;
v3.onRollOver = mx.utils.Delegate.create(this, this.onRollOverRotate);
v3.onRollOut = mx.utils.Delegate.create(this, this.onRollOutRotate);
v3.onPress = mx.utils.Delegate.create(this, this.onPressRotate);
v3.onRelease = mx.utils.Delegate.create(this, this.onReleaseRotate);
v3.onReleaseOutside = mx.utils.Delegate.create(this, this.onReleaseOutsideRotate);
v2.onRollOver = mx.utils.Delegate.create(this, this.onRollOverScale);
v2.onRollOut = mx.utils.Delegate.create(this, this.onRollOutScale);
v2.onPress = mx.utils.Delegate.create(this, this.onPressScale);
v2.onRelease = mx.utils.Delegate.create(this, this.onReleaseScale);
v2.onReleaseOutside = mx.utils.Delegate.create(this, this.onReleaseOutsideScale);
v4.useHandCursor = false;
v2.useHandCursor = v4.useHandCursor;
v3.useHandCursor = v4.useHandCursor;
return v5;
};
v2.resetHandleAngles = function () {
var v4 = this._baseWidth * (this._targetObject._xscale / 100) / 2;
var v3 = this._baseHeight * (this._targetObject._yscale / 100) / 2;
var v2 = Math.atan2(v3, v4);
this._handles_array[0].angleOffset = Math.PI + v2;
this._handles_array[1].angleOffset = -v2;
this._handles_array[2].angleOffset = v2;
this._handles_array[3].angleOffset = Math.PI - v2;
};
v2.getDistanceToHandles = function () {
var v3 = this._baseWidth * (this._targetObject._xscale / 100) / 2;
var v2 = this._baseHeight * (this._targetObject._yscale / 100) / 2;
return Math.sqrt(v3 * v3 + v2 * v2);
};
v2.deleteHandles = function () {
var v2 = 0;
while (v2 < this._handles_array.length) {
this._handles_array[v2].mc.removeMovieClip();
delete this._handles_array[v2];
++v2;
}
this._handles_array = [];
this._selection_mc.onMouseMove = undefined;
this._selection_mc.removeMovieClip();
};
v1.defaultBol = function (b, default_bol) {
if (b == undefined) {
return default_bol;
} else {
return b;
}
};
v2.addAllEventsListener = function (handler) {
this.addEventListener('select', handler);
this.addEventListener('deselect', handler);
this.addEventListener('delete', handler);
this.addEventListener('clickOff', handler);
this.addEventListener('deleteKeyDown', handler);
this.addEventListener('scale', handler);
this.addEventListener('rotate', handler);
this.addEventListener('move', handler);
};
v2.removeAllEventsListener = function (handler) {
this.removeEventListener('select', handler);
this.removeEventListener('deselect', handler);
this.removeEventListener('delete', handler);
this.removeEventListener('clickOff', handler);
this.removeEventListener('deleteKeyDown', handler);
this.removeEventListener('scale', handler);
this.removeEventListener('rotate', handler);
this.removeEventListener('move', handler);
};
v1.getItemFromTargetObject = function (tgo) {
var v1 = 0;
while (v1 < gs.TransformItem._items_array.length) {
if (gs.TransformItem._items_array[v1].targetObject == tgo) {
return gs.TransformItem._items_array[v1];
}
++v1;
}
};
v1.buildRotationCursor = function () {
if (_root.rotationCursor_mc == undefined) {
var v3 = 6.5;
gs.TransformItem._rotationCursor = _root.createEmptyMovieClip('rotationCursor_mc', gs.TransformItem.findNextHighestDepth(_root));
var v2 = gs.TransformItem._rotationCursor;
v2.lineStyle(4, 0);
gs.TransformItem.circle(v2, 0, 0, v3);
v2.moveTo(-v3 - 2.5, -3);
v2.lineTo(-v3, 0);
v2.lineTo(-v3 + 4, -1.5);
v2.lineStyle(2, 16777215);
gs.TransformItem.circle(v2, 0, 0, v3);
v2.lineStyle(2, 0);
v2.moveTo(-v3 - 1, 1);
v2.lineTo(-v3 + 1, 1);
v2.lineStyle(2, 16777215);
v2.moveTo(-v3 - 2.5, -3);
v2.lineTo(-v3, 0);
v2.lineTo(-v3 + 4, -1.5);
v2.cacheAsBitmap = true;
v2._visible = false;
} else {
gs.TransformItem._rotationCursor = _root.rotationCursor_mc;
}
gs.TransformItem._rotationCursor.onMouseDown = gs.TransformItem.checkAllForDeselect;
};
v1.buildScaleCursor = function () {
if (_root.scaleCursor_mc == undefined) {
var v2 = 10;
gs.TransformItem._scaleCursor = _root.createEmptyMovieClip('scaleCursor_mc', gs.TransformItem.findNextHighestDepth(_root));
var v3 = gs.TransformItem._scaleCursor;
v3.lineStyle(4, 0);
v3.moveTo(-(v2 / 2), v2 / 2);
v3.lineTo(v2 / 2, -(v2 / 2));
v3.moveTo(v2 / 2 - 3, -(v2 / 2));
v3.lineTo(v2 / 2, -(v2 / 2));
v3.lineTo(v2 / 2, -(v2 / 2) + 3);
v3.moveTo(-(v2 / 2), v2 / 2 - 3);
v3.lineTo(-(v2 / 2), v2 / 2);
v3.lineTo(-(v2 / 2) + 3, v2 / 2);
v3.lineStyle(2, 16777215);
v3.moveTo(-(v2 / 2), v2 / 2);
v3.lineTo(v2 / 2, -(v2 / 2));
v3.moveTo(v2 / 2 - 3, -(v2 / 2));
v3.lineTo(v2 / 2, -(v2 / 2));
v3.lineTo(v2 / 2, -(v2 / 2) + 3);
v3.moveTo(-(v2 / 2), v2 / 2 - 3);
v3.lineTo(-(v2 / 2), v2 / 2);
v3.lineTo(-(v2 / 2) + 3, v2 / 2);
v3.cacheAsBitmap = true;
v3._visible = false;
} else {
gs.TransformItem._scaleCursor = _root.scaleCursor_mc;
}
};
v1.box = function (mc, x, y, w, h, fc, fa, t, lc, la) {
if (lc != undefined) {
mc.lineStyle(t, lc, la);
}
if (fc != undefined) {
mc.beginFill(fc, fa);
}
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
if (fc != undefined) {
mc.endFill();
}
};
v1.circle = function (mc, x, y, r, f) {
if (f != undefined) {
mc.beginFill(f);
}
mc.moveTo(x + r, y);
mc.curveTo(r + x, 0.4142135623730951 * r + y, Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y);
mc.curveTo(0.4142135623730951 * r + x, r + y, x, r + y);
mc.curveTo(-0.4142135623730951 * r + x, r + y, -Math.SQRT1_2 * r + x, Math.SQRT1_2 * r + y);
mc.curveTo(-r + x, 0.4142135623730951 * r + y, -r + x, y);
mc.curveTo(-r + x, -0.4142135623730951 * r + y, -Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y);
mc.curveTo(-0.4142135623730951 * r + x, -r + y, x, -r + y);
mc.curveTo(0.4142135623730951 * r + x, -r + y, Math.SQRT1_2 * r + x, -Math.SQRT1_2 * r + y);
mc.curveTo(r + x, -0.4142135623730951 * r + y, r + x, y);
if (f != undefined) {
mc.endFill();
}
};
v1.findNextHighestDepth = function (mc) {
var v4 = mc.getNextHighestDepth();
if (v4 != undefined && v4 < 16000) {
return v4;
} else {
v4 = -1;
var v2;
var v1;
var v5 = TextField.prototype;
for (var v6 in mc) {
v1 = mc[v6];
if ((typeof v1 == 'movieclip' || v1.__proto__ == v5) && v1._parent == mc) {
v2 = v1.getDepth();
if (v2 > v4 && v2 < 16000) {
v4 = v2;
}
}
}
return v4 + 1;
}
};
v1.selectTargetObject = function (tgo) {
var v1 = gs.TransformItem.getItemFromTargetObject(tgo);
if (v1 == undefined) {
v1 = new gs.TransformItem(tgo);
}
v1.select();
return v1;
};
v1.deselectAll = function () {
var v1 = 0;
while (v1 < gs.TransformItem._items_array.length) {
gs.TransformItem._items_array[v1].deselect();
++v1;
}
};
v2.destroy = function (calledFromManager_bol) {
if (calledFromManager_bol != true) {
this._manager.removeItem(this);
}
this.__set__enabled(false);
this.deselect(true);
Key.removeListener(this);
this._selection_mc.removeMovieClip();
gs.TransformItem.destroyInstance(this);
};
v1.destroyInstance = function (i) {
false;
};
v2.__get__selected = function () {
return this._selected;
};
v2.__set__selected = function (b) {
if (b != this._selected) {
if (b) {
this.select();
} else {
this.deselect();
}
}
return this.__get__selected();
};
v2.__get__targetObject = function () {
return this._targetObject;
};
v2.__get__mc = function () {
return this.__get__targetObject();
};
v2.__get__manager = function () {
return this._manager;
};
v2.__get__enabled = function () {
return this._enabled;
};
v2.__set__enabled = function (b) {
if (this._enabled != b) {
this._enabled = b;
if (b) {
this._targetObject.onPress = mx.utils.Delegate.create(this, this.onPressSelect);
this._targetObject.onReleaseOutside = mx.utils.Delegate.create(this, this.onReleaseMove);
this._targetObject.onRelease = this._targetObject.onReleaseOutside;
} else {
if (this._selected) {
this.deselect();
}
if (this._oldOnPress == undefined) {
delete this._targetObject.onPress;
} else {
this._targetObject.onPress = this._oldOnPress;
}
if (this._oldOnReleaseOutside == undefined) {
delete this._targetObject.onReleaseOutside;
} else {
this._targetObject.onReleaseOutside = this._oldOnReleaseOutside;
}
if (this._oldOnRelease == undefined) {
delete this._targetObject.onRelease;
} else {
this._targetObject.onRelease = this._oldOnRelease;
}
}
}
return this.__get__enabled();
};
v2.__set__lineColor = function (n) {
this._lineColor = n;
if (this._selection_mc != undefined) {
this.initHandles();
}
return this.__get__lineColor();
};
v2.__get__lineColor = function () {
return this._lineColor;
};
v2.__set__handleFillColor = function (n) {
this._handleFillColor = n;
if (this._selection_mc != undefined) {
this.initHandles();
}
return this.__get__handleFillColor();
};
v2.__get__handleFillColor = function () {
return this._handleFillColor;
};
v2.__set__handleSize = function (n) {
this._handleSize = n;
if (this._selection_mc != undefined) {
this.initHandles();
}
return this.__get__handleSize();
};
v2.__get__handleSize = function () {
return this._handleSize;
};
v2.__set__paddingForRotation = function (n) {
this._paddingForRotation = n;
if (this._selection_mc != undefined) {
this.initHandles();
}
return this.__get__paddingForRotation();
};
v2.__get__paddingForRotation = function () {
return this._paddingForRotation;
};
v2.__get__width = function () {
return this._baseWidth * (this._targetObject._xscale / 100);
};
v2.__get__height = function () {
return this._baseHeight * (this._targetObject._yscale / 100);
};
v2.__set__bounds = function (o) {
if (o.xMax != undefined && o.xMin != undefined && o.yMax != undefined && o.yMin != undefined) {
this._bounds = o;
} else {
trace('ERROR: illegal bounds property for the TransformItem of ' + this._targetObject + '. The bounds property must have valid xMax, xMin, yMax, and yMin properties.');
}
return this.__get__bounds();
};
v2.__get__bounds = function () {
return this._bounds;
};
v2.__get__centerX = function () {
return (this.__get__centerPoint()).x;
};
v2.__get__centerY = function () {
return (this.__get__centerPoint()).y;
};
v2.__get__centerPoint = function () {
var v2 = {'x': this._localCenterX, 'y': this._localCenterY};
this._targetObject.localToGlobal(v2);
this._targetObject._parent.globalToLocal(v2);
return v2;
};
v2.__get__axisX = function () {
return (this.__get__axisPoint()).x;
};
v2.__get__axisY = function () {
return (this.__get__axisPoint()).y;
};
v2.__get__axisPoint = function () {
var v2 = {'x': this._localAxisX, 'y': this._localAxisY};
this._targetObject.localToGlobal(v2);
this._targetObject._parent.globalToLocal(v2);
return v2;
};
v2.__get__eventHandler = function () {
return this._eventHandler;
};
v2.__set__eventHandler = function (f) {
if (f != this._eventHandler && f != undefined) {
this.removeAllEventsListener(this._eventHandler);
this.addAllEventsListener(f);
this._eventHandler = f;
}
return this.__get__eventHandler();
};
v2.addProperty('axisPoint', v2.__get__axisPoint, function () {});
v2.addProperty('axisX', v2.__get__axisX, function () {});
v2.addProperty('axisY', v2.__get__axisY, function () {});
v2.addProperty('bounds', v2.__get__bounds, v2.__set__bounds);
v2.addProperty('centerPoint', v2.__get__centerPoint, function () {});
v2.addProperty('centerX', v2.__get__centerX, function () {});
v2.addProperty('centerY', v2.__get__centerY, function () {});
v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled);
v2.addProperty('eventHandler', v2.__get__eventHandler, v2.__set__eventHandler);
v2.addProperty('handleFillColor', v2.__get__handleFillColor, v2.__set__handleFillColor);
v2.addProperty('handleSize', v2.__get__handleSize, v2.__set__handleSize);
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('lineColor', v2.__get__lineColor, v2.__set__lineColor);
v2.addProperty('manager', v2.__get__manager, function () {});
v2.addProperty('mc', v2.__get__mc, function () {});
v2.addProperty('paddingForRotation', v2.__get__paddingForRotation, v2.__set__paddingForRotation);
v2.addProperty('selected', v2.__get__selected, v2.__set__selected);
v2.addProperty('targetObject', v2.__get__targetObject, function () {});
v2.addProperty('width', v2.__get__width, function () {});
ASSetPropFlags(gs.TransformItem.prototype, null, 1);
}
#endinitclip
}
movieClip 383 __Packages.gs.utils.EventDispatcherAS2 {
#initclip
if (!_global.gs) {
_global.gs = new Object();
}
if (!_global.gs.utils) {
_global.gs.utils = new Object();
}
if (!_global.gs.utils.EventDispatcherAS2) {
var v1 = function () {};
gs.utils.EventDispatcherAS2 = v1;
var v2 = v1.prototype;
v1.initialize = function ($o) {
if (gs.utils.EventDispatcherAS2.dispatcher == undefined) {
gs.utils.EventDispatcherAS2.dispatcher = new gs.utils.EventDispatcherAS2();
}
$o.addEventListener = gs.utils.EventDispatcherAS2.dispatcher.addEventListener;
$o.removeEventListener = gs.utils.EventDispatcherAS2.dispatcher.removeEventListener;
$o.dispatchEvent = gs.utils.EventDispatcherAS2.dispatcher.dispatchEvent;
$o.listeners = [];
};
v2.addEventListener = function ($type, $handler, $scope) {
var v6 = this;
var v3 = v6.listeners;
$type = $type.toLowerCase();
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].type == $type && v3[v2].handler == $handler) {
return undefined;
}
++v2;
}
v3.push({'type': $type, 'handler': $handler, 'scope': $scope});
};
v2.removeEventListener = function ($type, $handler) {
var v6 = this;
var v3 = v6.listeners;
$type = $type.toLowerCase();
var v2 = v3.length - 1;
while (v2 > -1) {
if (v3[v2].handler == $handler && v3[v2].type == $type) {
v3.splice(v2, 1);
return undefined;
}
--v2;
}
};
v2.dispatchEvent = function ($type, $event) {
var v6 = this;
var v3 = v6.listeners.slice();
$type = $type.toLowerCase();
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].type == $type) {
if (v3[v2].scope != undefined) {
v3[v2].handler.apply(v3[v2].scope, [$event]);
} else {
v3[v2].handler($event);
}
}
++v2;
}
};
ASSetPropFlags(gs.utils.EventDispatcherAS2.prototype, null, 1);
}
#endinitclip
}
movieClip 384 __Packages.mx.utils.Delegate {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.utils) {
_global.mx.utils = new Object();
}
if (!_global.mx.utils.Delegate) {
var v1 = function (f) {
super();
this.func = f;
};
mx.utils.Delegate = v1;
mx.utils.Delegate extends Object;
var v2 = v1.prototype;
v1.create = function (obj, func) {
var v2 = function () {
var v2 = arguments.callee.target;
var v3 = arguments.callee.func;
return v3.apply(v2, arguments);
};
v2.target = obj;
v2.func = func;
return v2;
};
v2.createDelegate = function (obj) {
return mx.utils.Delegate.create(obj, this.func);
};
ASSetPropFlags(mx.utils.Delegate.prototype, null, 1);
}
#endinitclip
}
movieClip 385 __Packages.gs.TransformItemTF {
#initclip
if (!_global.gs) {
_global.gs = new Object();
}
if (!_global.gs.TransformItemTF) {
var v1 = function (tf, vars, manager) {
super(tf, vars, manager);
var v3 = gs.TransformItem.findNextHighestDepth(tf._parent);
if (gs.TransformItemTF._dummyTF == undefined) {
this._targetObject._parent.createTextField('dummyTransformItemTF' + v3, v3, 10000, 0, 100, 15);
gs.TransformItemTF._dummyTF = this._targetObject._parent['dummyTransformItemTF' + v3];
TextField.prototype.swapDepths = MovieClip.prototype.swapDepths;
TextField.prototype.getBounds = MovieClip.prototype.getBounds;
TextField.prototype.localToGlobal = MovieClip.prototype.localToGlobal;
TextField.prototype.globalToLocal = MovieClip.prototype.globalToLocal;
++v3;
}
this._oldOnPress = tf.onSetFocus;
this._oldOnRelease = tf.onKillFocus;
this._mimic = tf._parent.createEmptyMovieClip('TransformItemTFMimic' + v3, v3);
gs.TransformItem.box(this._mimic, 0, 0, this._baseWidth, this._baseHeight, 16777215);
this._mimic._visible = false;
this.resetStartProps();
this._focusListener = {'onSetFocus': mx.utils.Delegate.create(this, this.onSetFocus)};
this._enabled = !this._enabled;
this.__set__enabled(!this._enabled);
};
gs.TransformItemTF = v1;
gs.TransformItemTF extends gs.TransformItem;
var v2 = v1.prototype;
v2.resetStartProps = function () {
super.resetStartProps();
var v3 = this._targetObject._rotation;
this._targetObject._rotation = 0;
this._startProps._width = this._targetObject._width;
this._startProps._height = this._targetObject._height;
this._targetObject._rotation = v3;
};
v2.resetCenterPoint = function () {
var v2 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v4 = this._targetObject._width;
var v3 = this._targetObject._height;
this._targetObject._rotation = v2;
this._localCenterX = v4 / 2;
this._localCenterY = v3 / 2;
};
v2.update = function () {
super.update();
this.updateMimic(true);
};
v2.updateMimic = function (full) {
this._mimic._x = this._targetObject._x;
this._mimic._y = this._targetObject._y;
this._mimic._rotation = this._targetObject._rotation;
if (full) {
var v2 = this._targetObject._rotation;
this._targetObject._rotation = 0;
this._mimic._xscale = (this._targetObject._width / this._baseWidth) * 100;
this._mimic._yscale = (this._targetObject._height / this._baseHeight) * 100;
this._targetObject._rotation = v2;
}
};
v2.setAxis = function (x, y) {
var v2 = {'x': x, 'y': y};
this.updateMimic(false);
this._mimic._parent.localToGlobal(v2);
this._mimic.globalToLocal(v2);
this._localAxisX = v2.x;
this._localAxisY = v2.y;
};
v2.select = function () {
if (!this._selected) {
this.showHandles();
this.resetStartProps();
this._selected = true;
this.onKeyDown = mx.utils.Delegate.create(this, this.onKeyDownCheck);
this.onKeyUp = mx.utils.Delegate.create(this, this.onKeyUpCheck);
if (this.forceSelectionToFront) {
this.bringToFront();
}
this.dispatchEvent('select', {'target': this, 'type': 'select', 'action': 'select', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
this._manager.onSelectTransformItem(this);
}
};
v2.deselect = function (skipEvent) {
if (this._selected) {
this._selection_mc._visible = false;
this._selected = false;
Selection.setFocus(gs.TransformItemTF._dummyTF);
this.onKeyDown = undefined;
this.onKeyUp = undefined;
this._manager.onDeselect(this);
if (skipEvent != true) {
this.dispatchEvent('deselect', {'target': this, 'type': 'deselect', 'action': 'deselect', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
};
v2.checkForDeselect = function () {
if (this._selected) {
if (Selection.getFocus() == this._targetObject || this._selection_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
return undefined;
} else {
if (this.autoDeselect) {
this.deselect();
} else {
if (this._manager.selectedItem != undefined || this._manager == undefined) {
this.dispatchEvent('clickOff', {'target': this, 'type': 'clickOff', 'action': 'clickOff', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
}
}
};
v2.onSetFocus = function (old_obj, new_obj) {
if (new_obj == this._targetObject) {
this.select();
} else {
if (old_obj == this._targetObject) {
this.checkForDeselect();
}
}
};
v2.deleteItem = function () {
this._targetObject.swapDepths(gs.TransformItem.findNextHighestDepth(this._targetObject._parent));
this._targetObject.removeTextField();
gs.TransformItem._rotationCursor._visible = false;
gs.TransformItem._scaleCursor._visible = gs.TransformItem._rotationCursor._visible;
Mouse.show();
if (this._manager == undefined) {
this.destroy();
} else {
this._manager.removeItem(this);
}
this.dispatchEvent('delete', {'target': this, 'type': 'delete', 'action': 'delete', 'transformed': false, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
};
v2.onPressMove = function () {
if (!this.lockPosition) {
this.resetStartProps();
this._selection_mc.onMouseMove = mx.utils.Delegate.create(this, this.onMouseMoveMove);
this.onMouseMoveMove();
}
};
v2.onMouseMoveMove = function () {
var v2 = this._startProps;
var v4 = this._targetObject._parent._xmouse - v2._xmouse;
var v3 = this._targetObject._parent._ymouse - v2._ymouse;
if (!Key.isDown(16)) {
this._targetObject._x = v2._x + v4;
this._targetObject._y = v2._y + v3;
} else {
if (Math.abs(v4) > Math.abs(v3)) {
this._targetObject._x = v2._x + v4;
this._targetObject._y = v2._y;
} else {
this._targetObject._y = v2._y + v3;
this._targetObject._x = v2._x;
}
}
if (this._bounds.xMax != undefined) {
this._targetObject._x = Math.max(v2.xMin, Math.min(this._targetObject._x, v2.xMax));
this._targetObject._y = Math.max(v2.yMin, Math.min(this._targetObject._y, v2.yMax));
}
this._selection_mc._x = this._targetObject._x - v2.distRegToCenterX;
this._selection_mc._y = this._targetObject._y - v2.distRegToCenterY;
updateAfterEvent();
};
v2.onReleaseMove = function () {
if (!this.lockPosition) {
this._selection_mc.onMouseMove = undefined;
if (this._startProps._x != this._targetObject._x || this._startProps._y != this._targetObject._y) {
this.resetStartProps();
this.dispatchEvent('move', {'target': this, 'type': 'move', 'action': 'move', 'transformed': true, 'targetObject': this._targetObject, 'manager': this._manager, 'item': this});
}
}
if (this._oldOnRelease != undefined) {
this._oldOnRelease();
}
};
v2.setScaleAxis = function () {
if (this.scaleFromCenter) {
this.setAxis(this.__get__centerX(), this.__get__centerY());
} else {
var v5 = 0;
while (v5 < 4) {
var v3 = this._handles_array[v5].mc;
if (v3.hitTest(_root._xmouse, _root._ymouse, true)) {
var v6 = (v5 + 2) % 4;
v3 = this._handles_array[v6].mc;
var v4 = {'x': v3._x, 'y': v3._y};
v3._parent.localToGlobal(v4);
this.updateMimic(false);
this._mimic._parent.globalToLocal(v4);
this.setAxis(v4.x, v4.y);
break;
}
++v5;
}
}
};
v2.onMouseMoveScale = function () {
var v7 = this._startProps;
var v6 = this._targetObject._parent._xmouse - v7.axisX;
var v5 = v7.axisY - this._targetObject._parent._ymouse;
var v15 = Math.sqrt(v6 * v6 + v5 * v5);
if (Key.isDown(16) || this.constrainScale) {
this._targetObject._width = (v7._width / v7.distAxisToMouse) * v15;
this._targetObject._height = (v7._height / v7.distAxisToMouse) * v15;
} else {
var v17 = Math.atan2(v5, v6) + v7.angle;
this._targetObject._width = Math.max(2, (v7._width / v7.distAxisToMouseX) * Math.cos(v17) * v15);
this._targetObject._height = Math.max(2, (v7._height / v7.distAxisToMouseY) * Math.sin(v17) * v15);
this.resetHandleAngles();
}
this.updateMimic(true);
var v14 = {'x': this._localAxisX, 'y': this._localAxisY};
this._mimic.localToGlobal(v14);
this._mimic._parent.globalToLocal(v14);
this._targetObject._x -= v14.x - v7.axisX;
this._targetObject._y -= v14.y - v7.axisY;
if (this._bounds.xMax != undefined) {
var v16 = this._targetObject.getBounds(this._targetObject._parent);
if (v16.xMax > this._bounds.xMax || v16.xMin < this._bounds.xMin || v16.yMax > this._bounds.yMax || v16.yMin < this._bounds.yMin) {
this.updateMimic(true);
this.renderHandles();
var v3;
var v8;
var v13;
var v11 = 1;
var v4 = this.__get__axisPoint();
var v12 = {'x': Math.round(v4.x), 'y': Math.round(v4.y)};
var v10;
var v2;
var v9 = 0;
while (v9 < this._handles_array.length) {
v10 = this._handles_array[v9];
v2 = {'x': v10.mc._x, 'y': v10.mc._y};
v10.mc._parent.localToGlobal(v2);
this._targetObject._parent.globalToLocal(v2);
v2.x = Math.round(v2.x);
v2.y = Math.round(v2.y);
if (!(Math.abs(v2.x - v4.x) < 1 && Math.abs(v2.y - v4.y) < 1)) {
v3 = (Math.atan2(v2.y - v12.y, v2.x - v12.x) + 12.56637061435917) % 6.283185307179586;
v6 = v4.x - v2.x;
v5 = v4.y - v2.y;
v13 = Math.sqrt(v6 * v6 + v5 * v5);
if (v3 <= v7.angleAxisToBR || v7.angleAxisToTR >= 4.71238898038469 && v3 >= v7.angleAxisToTR) {
v6 = this._bounds.xMax - v4.x;
v8 = v6 / Math.cos(v3);
} else {
if (v3 <= v7.angleAxisToBL) {
v5 = this._bounds.yMax - v4.y;
v8 = v5 / Math.sin(v3);
} else {
if (v3 <= v7.angleAxisToTL) {
v6 = v4.x - this._bounds.xMin;
v8 = v6 / Math.cos(v3);
} else {
v5 = v4.y - this._bounds.yMin;
v8 = v5 / Math.sin(v3);
}
}
}
if (v8 != 0) {
v11 = Math.min(v11, Math.abs(v8) / v13);
}
}
++v9;
}
this._targetObject._width = (this._mimic._xscale * v11 / 100) * this._baseWidth;
this._targetObject._height = (this._mimic._yscale * v11 / 100) * this._baseHeight;
this.updateMimic(true);
v14 = {'x': this._localAxisX, 'y': this._localAxisY};
this._mimic.localToGlobal(v14);
this._mimic._parent.globalToLocal(v14);
this._targetObject._x -= v14.x - v7.axisX;
this._targetObject._y -= v14.y - v7.axisY;
}
}
this.renderHandles();
updateAfterEvent();
};
v2.resetHandleAngles = function () {
var v3 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v5 = this._targetObject._width / 2;
var v4 = this._targetObject._height / 2;
this._targetObject._rotation = v3;
var v2 = Math.atan2(v4, v5);
this._handles_array[0].angleOffset = Math.PI + v2;
this._handles_array[1].angleOffset = -v2;
this._handles_array[2].angleOffset = v2;
this._handles_array[3].angleOffset = Math.PI - v2;
};
v2.getDistanceToHandles = function () {
var v4 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v3 = this._targetObject._width / 2;
var v2 = this._targetObject._height / 2;
this._targetObject._rotation = v4;
return Math.sqrt(v3 * v3 + v2 * v2);
};
v1.getItemFromTargetObject = function (tgo) {
var v1 = 0;
while (v1 < gs.TransformItem._items_array.length) {
if (gs.TransformItem._items_array[v1].targetObject == tgo) {
return gs.TransformItem._items_array[v1];
}
++v1;
}
};
v1.selectTargetObject = function (tgo) {
var v1 = gs.TransformItemTF.getItemFromTargetObject(tgo);
if (v1 == undefined) {
v1 = new gs.TransformItemTF(tgo);
}
v1.select();
return v1;
};
v2.__get__targetObject = function () {
return this._targetObject;
};
v2.__get__enabled = function () {
return this._enabled;
};
v2.__set__enabled = function (b) {
if (this._enabled != b) {
this._enabled = b;
if (b) {
Selection.addListener(this._focusListener);
} else {
if (this._selected) {
this.deselect();
}
Selection.removeListener(this._focusListener);
}
}
return this.__get__enabled();
};
v2.__get__width = function () {
var v2 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v3 = this._targetObject._width;
this._targetObject._rotation = v2;
return v3;
};
v2.__get__height = function () {
var v2 = this._targetObject._rotation;
this._targetObject._rotation = 0;
var v3 = this._targetObject._height;
this._targetObject._rotation = v2;
return v3;
};
v2.__get__centerPoint = function () {
this.updateMimic(false);
var v2 = {'x': this._localCenterX, 'y': this._localCenterY};
this._mimic.localToGlobal(v2);
this._mimic._parent.globalToLocal(v2);
return v2;
};
v2.__get__axisPoint = function () {
this.updateMimic(false);
var v2 = {'x': this._localAxisX, 'y': this._localAxisY};
this._mimic.localToGlobal(v2);
this._mimic._parent.globalToLocal(v2);
return v2;
};
v2.addProperty('axisPoint', v2.__get__axisPoint, function () {});
v2.addProperty('centerPoint', v2.__get__centerPoint, function () {});
v2.addProperty('enabled', v2.__get__enabled, v2.__set__enabled);
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('targetObject', v2.__get__targetObject, function () {});
v2.addProperty('width', v2.__get__width, function () {});
ASSetPropFlags(gs.TransformItemTF.prototype, null, 1);
}
#endinitclip
}
movieClip 386 __Packages.it.sephiroth.PrintScreen {
#initclip
if (!_global.it) {
_global.it = new Object();
}
if (!_global.it.sephiroth) {
_global.it.sephiroth = new Object();
}
if (!_global.it.sephiroth.PrintScreen) {
var v1 = function () {
AsBroadcaster.initialize(this);
};
it.sephiroth.PrintScreen = v1;
var v2 = v1.prototype;
v2.print = function (mc, x, y, w, h) {
this.broadcastMessage('onStart', mc);
if (x == undefined) {
x = 0;
}
if (y == undefined) {
y = 0;
}
if (w == undefined) {
w = mc._width;
}
if (h == undefined) {
h = mc._height;
}
var v6 = new flash.display.BitmapData(w, h, false);
this.record = new LoadVars();
this.record.width = w;
this.record.height = h;
this.record.cols = 0;
this.record.rows = 0;
var v5 = new flash.geom.Matrix();
v5.translate(-x, -y);
v6.draw(mc, v5, new flash.geom.ColorTransform(), 1, new flash.geom.Rectangle(0, 0, w, h));
this.id = setInterval(this.copysource, 5, this, mc, v6);
};
v2.copysource = function (scope, movie, bit) {
var v3;
var v4;
scope.record['px' + scope.record.rows] = new Array();
var v1 = 0;
while (v1 < bit.width) {
v3 = bit.getPixel(v1, scope.record.rows);
v4 = v3.toString(16);
if (v3 == 16777215) {
v4 = '';
}
scope.record['px' + scope.record.rows].push(v4);
++v1;
}
scope.broadcastMessage('onProgress', movie, scope.record.rows, bit.height);
scope.record.rows += 1;
if (scope.record.rows >= bit.height) {
clearInterval(scope.id);
scope.broadcastMessage('onComplete', movie, scope.record);
bit.dispose();
}
};
ASSetPropFlags(it.sephiroth.PrintScreen.prototype, null, 1);
}
#endinitclip
}
movieClip 85 __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.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.126';
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, function () {});
ASSetPropFlags(mx.core.View.prototype, null, 1);
}
#endinitclip
}
movieClip 86 __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.126';
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 87 __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.126';
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 173 __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 174 __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.123';
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 178 __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 179 __Packages.mx.skins.CustomBorder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.CustomBorder) {
var v1 = function () {
super();
};
mx.skins.CustomBorder = v1;
var v2 = new mx.skins.Border();
mx.skins.CustomBorder.prototype = v2;
v2.__get__width = function () {
return this.__width;
};
v2.__get__height = function () {
return this.__height;
};
v2.init = function (Void) {
super.init();
};
v2.createChildren = function (Void) {};
v2.draw = function (Void) {
if (this.l_mc == undefined) {
var v2 = this.setSkin(mx.skins.CustomBorder.tagL, this.leftSkin);
if (this.horizontal) {
this.minHeight = this.l_mc._height;
this.minWidth = this.l_mc._width;
} else {
this.minHeight = this.l_mc._height;
this.minWidth = this.l_mc._width;
}
}
if (this.m_mc == undefined) {
this.setSkin(mx.skins.CustomBorder.tagM, this.middleSkin);
if (this.horizontal) {
this.minHeight = this.m_mc._height;
this.minWidth += this.m_mc._width;
} else {
this.minHeight += this.m_mc._height;
this.minWidth = this.m_mc._width;
}
}
if (this.r_mc == undefined) {
this.setSkin(mx.skins.CustomBorder.tagR, this.rightSkin);
if (this.horizontal) {
this.minHeight = this.r_mc._height;
this.minWidth += this.r_mc._width;
} else {
this.minHeight += this.r_mc._height;
this.minWidth = this.r_mc._width;
}
}
this.size();
};
v2.size = function (Void) {
this.l_mc.move(0, 0);
if (this.horizontal) {
this.r_mc.move(this.__get__width() - this.r_mc.width, 0);
this.m_mc.move(this.l_mc.width, 0);
this.m_mc.setSize(this.r_mc.x - this.m_mc.x, this.m_mc.height);
} else {
this.r_mc.move(0, this.__get__height() - this.r_mc.height, 0);
this.m_mc.move(0, this.l_mc.height);
this.m_mc.setSize(this.m_mc.width, this.r_mc.y - this.m_mc.y);
}
};
v1.symbolName = 'CustomBorder';
v1.symbolOwner = mx.skins.CustomBorder;
v1.version = '2.0.2.126';
v2.className = 'CustomBorder';
v1.tagL = 0;
v1.tagM = 1;
v1.tagR = 2;
v2.idNames = new Array('l_mc', 'm_mc', 'r_mc');
v2.leftSkin = 'F3PieceLeft';
v2.middleSkin = 'F3PieceMiddle';
v2.rightSkin = 'F3PieceRight';
v2.horizontal = true;
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('width', v2.__get__width, function () {});
ASSetPropFlags(mx.skins.CustomBorder.prototype, null, 1);
}
#endinitclip
}
movieClip 180 __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 182 __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 183 __Packages.mx.controls.HScrollBar {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.controls) {
_global.mx.controls = new Object();
}
if (!_global.mx.controls.HScrollBar) {
var v1 = function () {
super();
};
mx.controls.HScrollBar = v1;
var v2 = new mx.controls.scrollClasses.ScrollBar();
mx.controls.HScrollBar.prototype = v2;
v2.getMinWidth = function (Void) {
return this._minHeight;
};
v2.getMinHeight = function (Void) {
return this._minWidth;
};
v2.init = function (Void) {
super.init();
this._xscale = -100;
this._rotation = -90;
};
v2.__get__virtualHeight = function () {
return this.__width;
};
v2.isScrollBarKey = function (k) {
if (k == 37) {
this.scrollIt('Line', -1);
return true;
return super.isScrollBarKey(k);
}
if (k == 39) {
this.scrollIt('Line', 1);
return true;
}
return super.isScrollBarKey(k);
};
v1.symbolName = 'HScrollBar';
v1.symbolOwner = mx.core.UIComponent;
v1.version = '2.0.2.126';
v2.className = 'HScrollBar';
v2.minusMode = 'Left';
v2.plusMode = 'Right';
v2.minMode = 'AtLeft';
v2.maxMode = 'AtRight';
v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {});
ASSetPropFlags(mx.controls.HScrollBar.prototype, null, 1);
}
#endinitclip
}
movieClip 184 __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.123';
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 187 __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.123';
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 188 __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 189 __Packages.mx.controls.VScrollBar {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.controls) {
_global.mx.controls = new Object();
}
if (!_global.mx.controls.VScrollBar) {
var v1 = function () {
super();
};
mx.controls.VScrollBar = v1;
var v2 = new mx.controls.scrollClasses.ScrollBar();
mx.controls.VScrollBar.prototype = v2;
v2.init = function (Void) {
super.init();
};
v2.isScrollBarKey = function (k) {
if (k == 38) {
this.scrollIt('Line', -1);
return true;
return super.isScrollBarKey(k);
}
if (k == 40) {
this.scrollIt('Line', 1);
return true;
return super.isScrollBarKey(k);
}
if (k == 33) {
this.scrollIt('Page', -1);
return true;
return super.isScrollBarKey(k);
}
if (k == 34) {
this.scrollIt('Page', 1);
return true;
}
return super.isScrollBarKey(k);
};
v1.symbolName = 'VScrollBar';
v1.symbolOwner = mx.core.UIComponent;
v1.version = '2.0.2.126';
v2.className = 'VScrollBar';
v2.minusMode = 'Up';
v2.plusMode = 'Down';
v2.minMode = 'AtTop';
v2.maxMode = 'AtBottom';
ASSetPropFlags(mx.controls.VScrollBar.prototype, null, 1);
}
#endinitclip
}
movieClip 190 __Packages.mx.remoting.ApiClasses {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.ApiClasses) {
var v1 = function () {
super();
};
mx.remoting.ApiClasses = v1;
var v2 = new MovieClip();
mx.remoting.ApiClasses.prototype = v2;
ASSetPropFlags(mx.remoting.ApiClasses.prototype, null, 1);
}
#endinitclip
}
movieClip 195 __Packages.mx.data.DataRange {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.data) {
_global.mx.data = new Object();
}
if (!_global.mx.data.DataRange) {
}
#endinitclip
}
movieClip 196 __Packages.mx.data.PageableData {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.data) {
_global.mx.data = new Object();
}
if (!_global.mx.data.PageableData) {
}
#endinitclip
}
movieClip 197 __Packages.mx.data.PageableList {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.data) {
_global.mx.data = new Object();
}
if (!_global.mx.data.PageableList) {
}
#endinitclip
}
movieClip 198 __Packages.mx.services.Log {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.services) {
_global.mx.services = new Object();
}
if (!_global.mx.services.Log) {
var v1 = function (logLevel, name) {
this.level = (logLevel == undefined) ? mx.services.Log.BRIEF : logLevel;
this.name = (name == undefined) ? '' : name;
};
mx.services.Log = v1;
var v2 = v1.prototype;
v2.logInfo = function (msg, level) {
var v1 = this;
var v2 = level;
if (v2 == undefined) {
v2 = mx.services.Log.BRIEF;
}
if (v2 <= v1.level) {
if (v2 == mx.services.Log.DEBUG) {
v1.onLog(v1.getDateString() + ' [DEBUG] ' + v1.name + ': ' + msg);
} else {
v1.onLog(v1.getDateString() + ' [INFO] ' + v1.name + ': ' + msg);
}
}
};
v2.logDebug = function (msg) {
this.logInfo(msg, mx.services.Log.DEBUG);
};
v2.getDateString = function () {
var v1 = new Date();
return v1.getMonth() + 1 + '/' + v1.getDate() + ' ' + v1.getHours() + ':' + v1.getMinutes() + ':' + v1.getSeconds();
};
v2.onLog = function (message) {
trace(message);
};
v1.NONE = -1;
v1.BRIEF = 0;
v1.VERBOSE = 1;
v1.DEBUG = 2;
ASSetPropFlags(mx.services.Log.prototype, null, 1);
}
#endinitclip
}
movieClip 199 __Packages.mx.remoting.NetServices {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.NetServices) {
var v1 = function () {
super();
};
mx.remoting.NetServices = v1;
var v2 = new Object();
mx.remoting.NetServices.prototype = v2;
v1.setDefaultGatewayUrl = function (url) {
mx.remoting.NetServices.defaultGatewayUrl = url;
};
v1.setGatewayUrl = function (url) {
mx.remoting.NetServices.gatewayUrl = url;
};
v1.createGatewayConnection = function (url, infoLogger) {
var v1 = url;
mx.remoting.NetServices.logger = infoLogger;
if (v1 == undefined) {
v1 = mx.remoting.NetServices.gatewayUrl;
if (v1 == undefined) {
v1 = mx.remoting.NetServices.defaultGatewayUrl;
}
}
if (v1 == undefined) {
mx.remoting.NetServices.trace('NetServices', 'warning', 4, 'createGatewayConnection - gatewayUrl is undefined');
mx.remoting.NetServices.logger.logInfo('NetServices: createGatewayConnection - gateway url <' + v1 + '> is undefined', mx.services.Log.DEBUG);
return null;
}
var v2 = new mx.remoting.Connection();
v2.connect(v1);
mx.remoting.NetServices.__sharedConnections[v1] = v2;
return v2;
};
v1.getConnection = function (uri) {
return mx.remoting.NetServices.__sharedConnections[uri];
};
v1.getHostUrl = function () {
var v2 = _root;
if (!mx.remoting.NetServices.isHttpUrl(v2._url)) {
mx.remoting.NetServices.trace('NetServices', 'warning', 4, 'createGatewayConnection - gatewayUrl is invalid');
return null;
}
var v1 = v2._url.indexOf('/', 8);
if (v1 < 0) {
mx.remoting.NetServices.trace('NetServices', 'warning', 4, 'createGatewayConnection - gatewayUrl is invalid');
return null;
}
return v2._url.substring(0, v1);
};
v1.isHttpUrl = function (url) {
return url.indexOf('http://') == 0 || url.indexOf('https://') == 0;
};
v1.getHttpUrl = function (url) {
var v1 = url;
if (!mx.remoting.NetServices.isHttpUrl(v1)) {
v1 = mx.remoting.NetServices.getHostUrl() + v1;
}
return v1;
};
v1.trace = function (who, severity, number, message) {
mx.remoting.NetServices.traceNetServices(who, severity, number, message);
};
v1.version = '1.2.0.124';
v1.gatewayUrl = _root.gatewayUrl;
v1.__sharedConnections = new Array();
ASSetPropFlags(mx.remoting.NetServices.prototype, null, 1);
}
#endinitclip
}
movieClip 200 __Packages.mx.remoting.Connection {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.Connection) {
var v1 = function () {
super();
};
mx.remoting.Connection = v1;
var v2 = new NetConnection();
mx.remoting.Connection.prototype = v2;
v2.getService = function (serviceName, client) {
var v1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return v1;
};
v2.setCredentials = function (userId, password) {
this.addHeader('Credentials', false, {'userid': userId, 'password': password});
};
v2.clone = function () {
var v1 = new mx.remoting.Connection();
v1.connect(this.uri);
return v1;
};
v2.getDebugId = function () {
return null;
};
v2.getDebugConfig = function () {
return null;
};
v2.setDebugId = function (id) {};
v2.call = function () {
super.call.apply(super, arguments);
};
v2.close = function () {
super.close();
};
v2.connect = function (url) {
return super.connect(url);
};
v2.addHeader = function (name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
};
v2.trace = function (traceObj) {};
v2.AppendToGatewayUrl = function (urlSuffix) {
var v1 = this;
v1.__urlSuffix = urlSuffix;
if (v1.__originalUrl == null) {
v1.__originalUrl = v1.uri;
}
var v2 = v1.__originalUrl + urlSuffix;
v1.connect(v2);
};
v2.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
v2.RequestPersistentHeader = function (info) {
var v1 = info;
this.addHeader(v1.name, v1.mustUnderstand, v1.data);
};
v1.version = '1.2.0.124';
ASSetPropFlags(mx.remoting.Connection.prototype, null, 1);
}
#endinitclip
}
movieClip 201 __Packages.mx.remoting.RecordSet {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.RecordSet) {
var v1 = function (columnNames) {
var v1 = this;
super();
mx.events.EventDispatcher.initialize(v1);
v1._items = new Array();
v1.uniqueID = 0;
if (v1.mTitles != null) {
} else {
if (v1.serverInfo == null) {
if (v1.serverinfo != null) {
v1.serverInfo = v1.serverinfo;
}
}
if (v1.serverInfo == null) {
v1.mTitles = columnNames;
} else {
if (v1.serverInfo.version != 1) {
mx.remoting.NetServices.trace('RecordSet', 'warning', 100, 'Received incompatible RecordSet version from server');
} else {
v1.mTitles = v1.serverInfo.columnNames;
v1.mRecordsAvailable = 0;
v1.setData((v1.serverInfo.cursor == null) ? 0 : v1.serverInfo.cursor - 1, v1.serverInfo.initialData);
if (v1.serverInfo.initialData.length != v1.serverInfo.totalCount) {
v1.mRecordSetID = v1.serverInfo.id;
if (v1.mRecordSetID != null) {
v1.serviceName = (v1.serverInfo.serviceName == null) ? 'RecordSet' : v1.serverInfo.serviceName;
v1.mTotalCount = v1.serverInfo.totalCount;
v1.mDeliveryMode = 'ondemand';
v1.mAllNotified = false;
v1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace('RecordSet', 'warning', 102, 'Missing some records, but there\'s no RecordSet id');
}
}
v1.serverInfo = null;
}
}
}
};
mx.remoting.RecordSet = v1;
var v2 = new Object();
mx.remoting.RecordSet.prototype = v2;
v2.addItem = function (item) {
this.addItemAt(this.__get__length(), item);
};
v2.addItemAt = function (index, item) {
var v1 = index;
var v2 = this;
var v3 = true;
if (v1 < v2.__get__length() && v1 >= 0) {
v2.items.splice(v1, 0, item);
} else {
if (v1 == v2.__get__length()) {
v2.items[v1] = item;
} else {
v3 = false;
mx.remoting.NetServices.trace('Cannot add an item outside the bounds of the RecordSet');
goto 3506;
}
}
if (v3) {
item.__ID__ = v2.uniqueID++;
}
v2.updateViews('addItems', v1, v1);
label 3506:
};
v2.addEventListener = function (event, listener) {};
v2.clear = function () {
var v1 = this;
if (v1.checkLocal()) {
} else {
var v2 = v1.items.length;
v1.items.splice(0);
v1.uniqueID = 0;
v1.updateViews('removeItems', 0, v2);
}
};
v2.contains = function (itmToCheck) {
var v2 = itmToCheck;
if (this.isObjectEmpty(v2)) {
return false;
}
var itemAtIndex;
var v3;
var v1 = 0;
while (v1 < this.items.length) {
itemAtIndex = this.items[v1];
v3 = true;
for (var t in v2) {
if (v2[t] != itemAtIndex[t]) {
v3 = false;
break;
}
}
if (v3) {
return true;
}
++v1;
}
return false;
};
v2.getColumnNames = function () {
return this.mTitles;
};
v2.__get__columnNames = function () {
return this.getColumnNames();
};
v2.getLocalLength = function () {
return this.items.length;
};
v2.getLength = function () {
var v1 = this;
if (v1.mRecordSetID != null) {
return v1.mTotalCount;
} else {
return v1.items.length;
}
};
v2.getIterator = function () {
var v1 = new mx.remoting.RecordSetIterator(this);
return v1;
};
v2.__get__length = function () {
return this.getLength();
};
v2.getItemAt = function (index) {
var v1 = index;
var v2 = this;
if (v1 < 0 || v1 >= v2.__get__length()) {
return null;
}
if (v2.mRecordSetID == null) {
return v2.items[v1];
}
v2.requestRecord(v1);
var v3 = v2.items[v1];
if (v3 == 1) {
return 'in progress';
}
return v3;
};
v2.getItemID = function (index) {
return this.items[index].__ID__;
};
v2.__get__items = function () {
return this._items;
};
v2.initialize = function (info) {};
v2.filter = function (filterFunction, context) {
if (this.checkLocal()) {
} else {
var v3 = new mx.remoting.RecordSet(this.mTitles);
var rcount = this.__get__length();
var v2 = 0;
while (v2 < rcount) {
var v1 = this.getItemAt(v2);
if (v1 != null && v1 != 1 && filterFunction(v1, context)) {
v3.addItem(v1);
}
++v2;
}
return v3;
}
return undefined;
};
v2.sortItems = function (compareFunc, optionFlags) {
var v1 = this;
if (v1.checkLocal()) {
} else {
v1.items.sort(compareFunc, optionFlags);
v1.updateViews('sort');
}
};
v2.sortItemsBy = function (fieldNames, order, optionFlags) {
var v1 = this;
if (v1.checkLocal()) {
} else {
if (typeof order == 'string') {
v1.items.sortOn(fieldNames);
if (order.toUpperCase() == 'DESC') {
v1.items.reverse();
}
} else {
v1.items.sortOn(fieldNames, optionFlags);
}
v1.updateViews('sort');
}
};
v2.sort = function (compareFunc) {
var v1 = this;
if (v1.checkLocal()) {
} else {
v1.items.sort(compareFunc);
v1.updateViews('sort');
}
};
v2.isEmpty = function () {
return this.items.length == 0;
};
v2.isLocal = function () {
return this.mRecordSetID == null;
};
v2.isFullyPopulated = function () {
return this.isLocal();
};
v2.getRemoteLength = function () {
var v1 = this;
if (v1.isLocal()) {
return v1.mRecordsAvailable;
} else {
return v1.mTotalCount;
}
};
v2.getNumberAvailable = function () {
var v1 = this;
if (v1.isLocal()) {
return v1.getLength();
} else {
return v1.mRecordsAvailable;
}
};
v2.replaceItemAt = function (index, item) {
var v1 = index;
var v2 = this;
if (v1 >= 0 && v1 <= v2.__get__length()) {
var v3 = v2.getItemID(v1);
v2.items[v1] = item;
v2.items[v1].__ID__ = v3;
v2.updateViews('updateItems', v1, v1);
}
};
v2.removeAll = function () {
this.clear();
};
v2.removeItemAt = function (index) {
var v1 = index;
var v2 = this;
var v3 = v2._items[v1];
v2._items.splice(v1, 1);
var rItems = [v2._items[v1]];
var rIDs = [v2.getItemID(v1)];
v2.dispatchEvent({'type': 'modelChanged', 'eventName': 'removeItems', 'firstItem': v1, 'lastItem': v1, 'removedItems': rItems, 'removedIDs': rIDs});
return v3;
};
v2.removeEventListener = function (event, listener) {};
v2.requestRange = function (range) {
var v1 = range.getStart();
var v2 = range.getEnd();
return this.internalRequestRange(v1, v2);
};
v2.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var v1 = this;
var v2 = pagesize;
var v3 = numPrefetchPages;
v1.mDeliveryMode = mode.toLowerCase();
v1.stopFetchAll();
if (v2 == null || v2 <= 0) {
v2 = 25;
}
switch (v1.mDeliveryMode) {
case 'ondemand':
break;
case 'page':
if (v3 == null) {
v3 = 0;
}
v1.mPageSize = v2;
v1.mNumPrefetchPages = v3;
break;
case 'fetchall':
v1.stopFetchAll();
v1.startFetchAll(v2);
break;
default:
mx.remoting.NetServices.trace('RecordSet', 'warning', 107, 'SetDeliveryMode: unknown mode string');
}
};
v2.editField = function (index, fieldName, value) {
this.changeFieldValue(index, fieldName, value);
};
v2.getEditingData = function (index, fieldName) {
return this.items[index][fieldName];
};
v2.setField = function (index, fieldName, value) {
this.changeFieldValue(index, fieldName, value);
};
v2.changeFieldValue = function (index, fieldName, value) {
var v1 = index;
var v2 = this;
if (v2.checkLocal()) {
} else {
if (v1 < 0 || v1 >= v2.getLength()) {
} else {
v2.items[v1][fieldName] = value;
v2.updateViews('updateItems', v1, v1);
}
}
};
v2.isObjectEmpty = function (objToCheck) {
var v2 = objToCheck;
var v1 = true;
for (var v3 in v2) {
v1 = false;
return v1;
}
};
v2.arrayToObject = function (anArray) {
if (this.mTitles == null) {
mx.remoting.NetServices.trace('RecordSet', 'warning', 105, 'getItem: titles are not available');
return null;
}
var v3 = new Object();
var alen = anArray.length;
var v2;
var v1 = 0;
while (v1 < alen) {
v2 = this.mTitles[v1];
if (v2 == null) {
v2 = 'column' + v1 + 1;
}
v3[v2] = anArray[v1];
++v1;
}
return v3;
};
v2.checkLocal = function () {
if (this.isLocal()) {
return false;
} else {
mx.remoting.NetServices.trace('RecordSet', 'warning', 108, 'Operation not allowed on partial recordset');
return true;
}
};
v2.getRecordSetService = function () {
var v1 = this;
if (v1.mRecordSetService == null) {
if (v1.gateway_conn == null) {
v1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else {
if (_global.netDebugInstance != undefined) {
v1.gateway_conn = v1.gateway_conn.clone();
}
}
if (_global.netDebugInstance != undefined) {
v1.gateway_conn.setupRecordSet();
v1.gateway_conn.setDebugId('RecordSet ' + v1.mRecordSetID);
}
v1.mRecordSetService = v1.gateway_conn.getService(v1.serviceName, v1);
if (v1.mRecordSetService == null) {
mx.remoting.NetServices.trace('RecordSet', 'warning', 101, 'Failed to create RecordSet service');
v1.mRecordSetService = null;
}
}
return v1.mRecordSetService;
};
v2.internalRequestRange = function (index, lastIndex) {
var v1 = index;
var v2 = this;
var highestRequested = -1;
if (v1 < 0) {
v1 = 0;
}
if (lastIndex >= v2.getRemoteLength()) {
lastIndex = v2.getRemoteLength() - 1;
}
var v3;
var last;
while (v1 <= lastIndex) {
for (;;) {
if (!(v1 <= lastIndex && v2.items[v1] != null)) break;
++v1;
}
v3 = v1;
for (;;) {
if (!(v1 <= lastIndex && v2.items[v1] == null)) break;
++v2.mOutstandingRecordCount;
v2.items[v1] = 1;
++v1;
}
last = v1 - 1;
if (v3 <= last) {
v2.logger.logInfo(' Fetching records from index [' + v3 + '] to index [' + last + ']');
(v2.getRecordSetService()).getRecords(v2.mRecordSetID, v3 + 1, last - v3 + 1);
highestRequested = last;
v2.updateViews('fetchRows', v3, last);
}
}
return highestRequested;
};
v2.removeItems = function (index, len) {
var v3 = index;
var v2 = new Array();
var v1 = 0;
while (v1 < len) {
v2.push(this.getItemID(v3 + v1));
++v1;
}
var oldItems = this.items.splice(v3, len);
this.dispatchEvent({'type': 'modelChanged', 'eventName': 'removeItems', 'firstItem': v3, 'lastItem': v3 + len - 1, 'removedItems': oldItems, 'removedIDs': v2});
};
v2.getRecords_Result = function (info) {
var v1 = this;
var v2 = info;
v1.setData(v2.Cursor - 1, v2.Page);
v1.mOutstandingRecordCount -= v2.Page.length;
v1.updateViews('updateItems', v2.Cursor - 1, v2.Cursor - 1 + v2.Page.length - 1);
if (v1.mRecordsAvailable == v1.mTotalCount && !v1.mAllNotified) {
v1.updateViews('allRows');
v1.mRecordSetService.release();
v1.mAllNotified = true;
v1.mRecordSetID = null;
v1.mRecordSetService = null;
}
};
v2.release_Result = function () {};
v2.requestOneRecord = function (index) {
var v1 = this;
var v2 = index;
if (v1.items[v2] == null) {
if (v1.mDeliveryMode == 'ondemand') {
v1.logger.logInfo(' INFO: Fetching Record [' + v2 + ']');
}
(v1.getRecordSetService()).getRecords(v1.mRecordSetID, v2 + 1, 1);
++v1.mOutstandingRecordCount;
v1.items[v2] = 1;
v1.updateViews('fetchRows', v2, v2);
}
};
v2.requestRecord = function (index) {
var v1 = this;
if (v1.mDeliveryMode != 'page') {
v1.requestOneRecord(index);
} else {
var v2 = int(index / v1.mPageSize) * v1.mPageSize;
var v3 = v2 + v1.mPageSize * (v1.mNumPrefetchPages + 1) - 1;
v1.internalRequestRange(v2, v3);
}
};
v2._setParentService = function (service) {
this.gateway_conn = service.nc;
};
v2.setData = function (start, dataArray) {
var v1 = this;
var datalen = dataArray.length;
var v3;
var rec;
var v2 = 0;
while (v2 < datalen) {
v3 = v2 + start;
rec = v1.items[v3];
if (rec != null && rec != 1) {
mx.remoting.NetServices.trace('RecordSet', 'warning', 106, 'Already got record # ' + v3);
} else {
v1.mRecordsAvailable += 1;
}
v1.items[v3] = v1.arrayToObject(dataArray[v2]);
v1.items[v3].__ID__ = v1.uniqueID++;
++v2;
}
};
v2.startFetchAll = function (pagesize) {
var v1 = this;
if (v1.mDataFetcher != null) {
v1.mDataFetcher.disable();
}
v1.mDataFetcher = new mx.remoting.RsDataFetcher(v1, pagesize);
};
v2.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
v2.updateViews = function (event, first, last) {
this.dispatchEvent({'type': 'modelChanged', 'eventName': event, 'firstItem': first, 'lastItem': last});
};
v1.registerRecordSet = function () {
Object.registerClass('RecordSet', mx.remoting.RecordSet);
return true;
};
v1.version = '1.2.0.124';
v1.init = mx.remoting.RecordSet.registerRecordSet();
v2.addProperty('columnNames', v2.__get__columnNames, function () {});
v2.addProperty('items', v2.__get__items, function () {});
v2.addProperty('length', v2.__get__length, function () {});
ASSetPropFlags(mx.remoting.RecordSet.prototype, null, 1);
}
#endinitclip
}
movieClip 202 __Packages.mx.remoting.NetServiceProxy {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.NetServiceProxy) {
var v1 = function (netC, servName, cli) {
var v1 = this;
super();
if (netC != null) {
v1.nc = netC;
v1.serviceName = servName;
v1.client = cli;
}
v1._allowRes = true;
};
mx.remoting.NetServiceProxy = v1;
var v2 = new Object();
mx.remoting.NetServiceProxy.prototype = v2;
v2._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
v2.__resolve = function (methodName) {
var v1 = this;
var v2 = arguments;
if (v1._allowRes) {
var v3 = function () {
var v1 = this;
var v2 = arguments;
if (v1.client != null) {
v2.unshift(new mx.remoting.NetServiceProxyResponder(v1, methodName));
} else {
if (typeof v2[0].onResult != 'function') {
mx.remoting.NetServices.trace('NetServices', 'warning', 3, 'There is no defaultResponder, and no responder was given in call to ' + methodName);
v2.unshift(new mx.remoting.NetServiceProxyResponder(v1, methodName));
}
}
if (typeof v1.serviceName == 'function') {
v1.serviceName = v1.servicename;
}
v2.unshift(v1.serviceName + '.' + methodName);
return v1.nc.call.apply(v1.nc, v2);
};
return v3;
} else {
return null;
}
};
v1.registerNetServiceProxy = function () {
Object.registerClass('NetServiceProxy', mx.remoting.NetServiceProxy);
return true;
};
v1.init = mx.remoting.NetServiceProxy.registerNetServiceProxy();
v2._allowRes = false;
ASSetPropFlags(mx.remoting.NetServiceProxy.prototype, null, 1);
}
#endinitclip
}
movieClip 203 __Packages.mx.remoting.NetServiceProxyResponder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.NetServiceProxyResponder) {
var v1 = function (serv, method) {
super();
this.service = serv;
this.methodName = method;
};
mx.remoting.NetServiceProxyResponder = v1;
var v2 = new Object();
mx.remoting.NetServiceProxyResponder.prototype = v2;
v2.onResult = function (result) {
var v2 = result;
var v1 = this.service.client;
if (v2 instanceof mx.remoting.NetServiceProxy || v2 instanceof mx.remoting.RecordSet) {
v2._setParentService(this.service);
}
var v3 = this.methodName + '_Result';
if (typeof v1[v3] == 'function') {
v1[v3].apply(v1, [v2]);
} else {
if (typeof v1.onResult == 'function') {
v1.onResult(v2);
} else {
mx.remoting.NetServices.trace('NetServices', 'info', 1, v3 + ' was received from server: ' + v2);
}
}
};
v2.onStatus = function (result) {
var v2 = result;
var v1 = this.service.client;
var v3 = this.methodName + '_Status';
if (typeof v1[v3] == 'function') {
v1[v3].apply(v1, [v2]);
} else {
if (typeof v1.onStatus == 'function') {
v1.onStatus(v2);
} else {
if (typeof _root.onStatus == 'function') {
_root.onStatus(v2);
} else {
if (typeof _global.System.onStatus == 'function') {
_global.System.onStatus(v2);
} else {
mx.remoting.NetServices.trace('NetServices', 'info', 2, v3 + ' was received from server: <' + v2.level + '> ' + v2.description);
}
}
}
}
};
ASSetPropFlags(mx.remoting.NetServiceProxyResponder.prototype, null, 1);
}
#endinitclip
}
movieClip 204 __Packages.mx.utils.Iterator {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.utils) {
_global.mx.utils = new Object();
}
if (!_global.mx.utils.Iterator) {
}
#endinitclip
}
movieClip 205 __Packages.mx.remoting.RecordSetIterator {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.RecordSetIterator) {
var v1 = function (rec) {
this._recordSet = rec;
this._cursor = 0;
};
mx.remoting.RecordSetIterator = v1;
var v2 = v1.prototype;
v2.hasNext = function () {
return this._cursor < this._recordSet.getLength();
};
v2.next = function () {
return this._recordSet.getItemAt(this._cursor++);
};
v1.version = '1.2.0.124';
ASSetPropFlags(mx.remoting.RecordSetIterator.prototype, null, 1);
}
#endinitclip
}
movieClip 206 __Packages.mx.remoting.RsDataRange {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.RsDataRange) {
var v1 = function (s, e) {
super();
this._start = s;
this._end = e;
};
mx.remoting.RsDataRange = v1;
var v2 = new Object();
mx.remoting.RsDataRange.prototype = v2;
v2.getStart = function () {
return this._start;
};
v2.getEnd = function () {
return this._end;
};
v2.setEnd = function (e) {
this._end = e;
};
v2.setStart = function (s) {
this._start = s;
};
ASSetPropFlags(mx.remoting.RsDataRange.prototype, null, 1);
}
#endinitclip
}
movieClip 207 __Packages.mx.remoting.RsDataFetcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.RsDataFetcher) {
var v1 = function (pgRS, increment) {
var v1 = this;
super();
v1.mRecordSet = pgRS;
v1.mRecordSet.addEventListener('modelChanged', v1);
v1.mIncrement = increment;
v1.mNextRecord = 0;
v1.mEnabled = true;
v1.doNext();
};
mx.remoting.RsDataFetcher = v1;
var v2 = new Object();
mx.remoting.RsDataFetcher.prototype = v2;
v2.disable = function () {
this.mEnabled = false;
};
v2.doNext = function () {
var v1 = this;
if (v1.mEnabled) {
while (!false) {
if (v1.mNextRecord >= v1.mRecordSet.getRemoteLength()) {
break;
}
var v2 = new mx.remoting.RsDataRange(v1.mNextRecord, v1.mNextRecord + v1.mIncrement - 1);
v1.mHighestRequested = v1.mRecordSet.requestRange(v2);
v1.mNextRecord += v1.mIncrement;
if (v1.mHighestRequested > 0) {
break;
}
}
}
};
v2.modelChanged = function (eventObj) {
var v1 = this;
var v2 = eventObj;
if (v2.eventName == 'updateItems' && v2.firstItem <= v1.mHighestRequested && v2.lastItem >= v1.mHighestRequested) {
v1.doNext();
}
if (v2.eventName == 'allRows') {
v1.disable();
}
};
ASSetPropFlags(mx.remoting.RsDataFetcher.prototype, null, 1);
}
#endinitclip
}
movieClip 208 __Packages.mx.remoting.DataGlue {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.DataGlue) {
var v1 = function (dp) {
super();
this.__dataProv = dp;
};
mx.remoting.DataGlue = v1;
var v2 = new Object();
mx.remoting.DataGlue.prototype = v2;
v2.__get__dataProvider = function () {
return this.__dataProv;
};
v2.__get__labelString = function () {
return this.__labelStr;
};
v2.__set__labelString = function (val) {
this.__labelStr = val;
return this.__get__labelString();
};
v2.__get__dataString = function () {
return this.__dataStr;
};
v2.__set__dataString = function (val) {
this.__dataStr = val;
return this.__get__dataString();
};
v1.bindFormatStrings = function (dataConsumer, dp, labelStr, dataStr) {
var v1 = new mx.remoting.DataGlue(dp);
v1.__set__labelString(labelStr);
v1.__set__dataString(dataStr);
v1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = v1;
};
v1.bindFormatFunction = function (dataConsumer, dp, formatFunc) {
var v1 = new mx.remoting.DataGlue(dp);
v1.formatFunction = formatFunc;
v1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(v1);
};
v2.addEventListener = function (eventName, listener) {
this.dataProvider.addEventListener(eventName, listener);
};
v2.__get__length = function () {
return this.getLength();
};
v2.getLength = function () {
return this.dataProvider.length;
};
v2.format = function (formatString, item) {
var v3 = formatString.split('#');
var result = '';
var tlen = v3.length;
var v2;
var v1 = 0;
while (v1 < tlen) {
result += v3[v1];
v2 = v3[v1 + 1];
if (v2 != undefined) {
result += item[v2];
}
v1 += 2;
}
return result;
};
v2.getItemAt_FormatString = function (index) {
var v2 = this;
var v1 = v2.dataProvider.getItemAt(index);
if (v1 == 'in progress' || v1 == undefined) {
return v1;
}
return {'label': v2.format(v2.__get__labelString(), v1), 'data': (v2.__get__dataString() == null) ? v1 : v2.format(v2.__get__dataString(), v1)};
};
v2.getItemAt_FormatFunction = function (index) {
var v1 = this.dataProvider.getItemAt(index);
if (v1 == 'in progress' || v1 == undefined) {
return v1;
}
return this.formatFunction(v1);
};
v2.getItemID = function (index) {
return this.dataProvider.getItemID(index);
};
v2.addItemAt = function (index, value) {
this.dataProvider.addItemAt(index, value);
};
v2.addItem = function (value) {
this.dataProvider.addItem(value);
};
v2.removeItemAt = function (index) {
this.dataProvider.removeItemAt(index);
};
v2.removeAll = function () {
this.dataProvider.removeAll();
};
v2.replaceItemAt = function (index, itemObj) {
this.dataProvider.replaceItemAt(index, itemObj);
};
v2.sortItemsBy = function (fieldNames, optionFlags) {
this.dataProvider.sortItemsBy(fieldNames, optionFlags);
};
v2.sortItems = function (compareFunc, optionFlags) {
this.dataProvider.sortItems(compareFunc, optionFlags);
};
v1.version = '1.2.0.124';
v2.addProperty('dataProvider', v2.__get__dataProvider, function () {});
v2.addProperty('dataString', v2.__get__dataString, v2.__set__dataString);
v2.addProperty('labelString', v2.__get__labelString, v2.__set__labelString);
v2.addProperty('length', v2.__get__length, function () {});
ASSetPropFlags(mx.remoting.DataGlue.prototype, null, 1);
}
#endinitclip
}
movieClip 209 __Packages.mx.remoting.PendingCall {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.PendingCall) {
var v1 = function (srv, methodName) {
super();
this.__service = srv;
this.__methodName = methodName;
};
mx.remoting.PendingCall = v1;
var v2 = new Object();
mx.remoting.PendingCall.prototype = v2;
v2.__get__responder = function () {
return this.__responder;
};
v2.__set__responder = function (res) {
this.__responder = res;
return this.__get__responder();
};
v2.onResult = function (result) {
var v1 = result;
var v2 = this;
v1.serviceName = (typeof v1.serviceName == 'function') ? v1.servicename : v1.serviceName;
if (v1 != null) {
if (v1 instanceof mx.remoting.NetServiceProxy) {
var serv = new mx.remoting.Service(null, null, v1.serviceName, v2.__service.__get__connection(), v2.__service.__get__responder());
v1 = serv;
} else {
if (v1 instanceof mx.remoting.RecordSet) {
var v3 = new mx.remoting.NetServiceProxy(v2.__service.__get__connection());
v1._setParentService(v3);
v1.logger = v2.__service.log;
}
}
}
if (v2.__responder != null) {
v2.__responder.onResult(new mx.rpc.ResultEvent(v1));
}
if (v2.__service.log != null) {
v2.__service.log.logInfo(v2.__service.__get__name() + '.' + v2.__methodName + '() returned ' + mx.data.binding.ObjectDumper.toString(v1));
}
};
v2.onStatus = function (status) {
var v1 = this;
var v2 = status;
if (v1.__responder != null) {
v1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(v2.code, v2.description, v2.details, v2.type)));
}
if (v1.__service.log != null) {
v1.__service.log.logDebug('Service invocation failed.');
v1.__service.log.logDebug(v1.__service.__get__name() + '.' + v1.__methodName + '() returned ' + mx.data.binding.ObjectDumper.toString(v2));
}
};
v2.__get__methodName = function () {
return this.__methodName;
};
v1.inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
v2.addProperty('methodName', v2.__get__methodName, function () {});
v2.addProperty('responder', v2.__get__responder, v2.__set__responder);
ASSetPropFlags(mx.remoting.PendingCall.prototype, null, 1);
}
#endinitclip
}
movieClip 210 __Packages.mx.rpc.ResultEvent {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.ResultEvent) {
var v1 = function (res) {
super();
this.__result = res;
};
mx.rpc.ResultEvent = v1;
var v2 = new Object();
mx.rpc.ResultEvent.prototype = v2;
v2.__get__result = function () {
return this.__result;
};
v2.addProperty('result', v2.__get__result, function () {});
ASSetPropFlags(mx.rpc.ResultEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 211 __Packages.mx.rpc.Fault {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.Fault) {
var v1 = function (code, msg, detail, type) {
var v1 = this;
super();
v1.__faultcode = code;
v1.__faultstring = msg;
v1.__detail = detail;
v1.__type = type;
};
mx.rpc.Fault = v1;
var v2 = new Object();
mx.rpc.Fault.prototype = v2;
v2.__get__faultcode = function () {
return this.__faultcode;
};
v2.__get__faultstring = function () {
return this.__faultstring;
};
v2.__get__detail = function () {
return this.__detail;
};
v2.__get__description = function () {
var v2 = this;
if (v2.__description == null) {
if (v2.__faultstring.indexOf(':') > -1) {
v2.__description = v2.__faultstring.substring(v2.__faultstring.indexOf(':') + 1);
var v1 = 0;
while (v2.__description.indexOf(' ', v1) == v1) {
++v1;
}
if (v1 > 0) {
v2.__description = v2.__description.substring(v1);
}
} else {
v2.__description = v2.__faultstring;
}
}
return v2.__description;
};
v2.__get__type = function () {
return this.__type;
};
v2.addProperty('description', v2.__get__description, function () {});
v2.addProperty('detail', v2.__get__detail, function () {});
v2.addProperty('faultcode', v2.__get__faultcode, function () {});
v2.addProperty('faultstring', v2.__get__faultstring, function () {});
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(mx.rpc.Fault.prototype, null, 1);
}
#endinitclip
}
movieClip 212 __Packages.mx.rpc.FaultEvent {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.FaultEvent) {
var v1 = function (f) {
super();
this.__fault = f;
};
mx.rpc.FaultEvent = v1;
var v2 = new Object();
mx.rpc.FaultEvent.prototype = v2;
v2.__get__fault = function () {
return this.__fault;
};
v2.addProperty('fault', v2.__get__fault, function () {});
ASSetPropFlags(mx.rpc.FaultEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 213 __Packages.mx.rpc.Responder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.Responder) {
}
#endinitclip
}
movieClip 214 __Packages.mx.remoting.Service {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.Service) {
var v1 = function (gatewayURI, logger, serviceName, conn, resp) {
var v1 = this;
var v2 = conn;
var v3 = gatewayURI;
super();
v1.log = logger;
v1.log.logInfo('Creating Service for ' + serviceName, mx.services.Log.VERBOSE);
if (v3 == '' && v2 == null) {
v3 = mx.remoting.NetServices.gatewayUrl;
}
v3 = mx.remoting.NetServices.getHttpUrl(v3);
if (v2 == null) {
v2 = mx.remoting.NetServices.getConnection(v3);
if (v2 == null) {
v1.log.logInfo('Creating gateway connection for ' + v3, mx.services.Log.VERBOSE);
v2 = mx.remoting.NetServices.createGatewayConnection(v3, logger);
}
}
v1.__conn = v2;
v2.updateConfig();
v1._allowRes = true;
v1.__serviceName = serviceName;
v1.__responder = resp;
v1.log.logInfo('Successfully created Service', mx.services.Log.VERBOSE);
};
mx.remoting.Service = v1;
var v2 = new Object();
mx.remoting.Service.prototype = v2;
v2.__get__connection = function () {
return this.__conn;
};
v2.__resolve = function (methodName) {
var v2 = this;
if (v2._allowRes) {
var v1 = v2.__makeOpFunc(methodName);
v2[methodName] = v1;
return v1;
} else {
return null;
}
};
v2.__makeOpFunc = function (name) {
var op = new mx.remoting.Operation(name, this);
var v1 = function () {
op.invoke(arguments);
return op.send();
};
v1.send = function () {
return op.createThenSend();
};
v1.setResponder = function (resp) {
op.responder = resp;
};
v1.getRequest = function () {
return op.request;
};
v1.setRequest = function (val) {
op.request = val;
};
v1.addProperty('request', v1.getRequest, v1.setRequest);
v1.operation = op;
return v1;
};
v2.__get__name = function () {
return this.__serviceName;
};
v2.__get__responder = function () {
return this.__responder;
};
v1.version = '1.2.0.124';
v2._allowRes = false;
v2.addProperty('connection', v2.__get__connection, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('responder', v2.__get__responder, function () {});
ASSetPropFlags(mx.remoting.Service.prototype, null, 1);
}
#endinitclip
}
movieClip 215 __Packages.mx.remoting.Operation {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.remoting) {
_global.mx.remoting = new Object();
}
if (!_global.mx.remoting.Operation) {
var v1 = function (methodName, parent) {
var v1 = this;
v1.__service = parent;
v1.__responder = parent.responder;
v1.__methodName = methodName;
v1.__invokationName = v1.__service.__get__name() + '.' + methodName;
v1.__request = new Object();
v1.__arguments = new Array();
};
mx.remoting.Operation = v1;
var v2 = v1.prototype;
v2.createThenSend = function (Void) {
this.createArguments();
return this.send();
};
v2.send = function (Void) {
var v1 = this;
v1.__service.log.logInfo('Invoking ' + v1.__methodName + ' on ' + v1.__service.__get__name());
var v3 = new mx.remoting.PendingCall(v1.__service, v1.__methodName);
v3.__set__responder(v1.__responder);
var v2 = null;
if (v1.__arguments == null) {
v2 = new Array();
} else {
v2 = v1.__arguments.concat();
}
v1.__invokationName = v1.__service.__get__name() + '.' + v1.__methodName;
v2.unshift(v1.__invokationName, v3);
v1.__service.connection.call.apply(v1.__service.__get__connection(), v2);
return v3;
};
v2.invoke = function (a) {
this.__arguments = a;
};
v2.__get__responder = function () {
return this.__responder;
};
v2.__set__responder = function (r) {
this.__responder = r;
return this.__get__responder();
};
v2.__get__request = function () {
return this.__request;
};
v2.__set__request = function (r) {
this.__request = r;
return this.__get__request();
};
v2.__get__name = function () {
return this.__methodName;
};
v2.createArguments = function () {
var v1 = this;
if (v1.__request != null) {
v1.__arguments = new Array();
for (var v2 in v1.__request) {
if (v2 != 'arguments') {
v1.__arguments.unshift(v1.__request[v2]);
}
}
}
};
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('request', v2.__get__request, v2.__set__request);
v2.addProperty('responder', v2.__get__responder, v2.__set__responder);
ASSetPropFlags(mx.remoting.Operation.prototype, null, 1);
}
#endinitclip
}
movieClip 216 __Packages.mx.data.binding.ObjectDumper {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.data) {
_global.mx.data = new Object();
}
if (!_global.mx.data.binding) {
_global.mx.data.binding = new Object();
}
if (!_global.mx.data.binding.ObjectDumper) {
var v1 = function () {
this.inProgress = new Array();
};
mx.data.binding.ObjectDumper = v1;
var v2 = v1.prototype;
v1.toString = function (obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var v1 = indent;
var v2 = maxLineLength;
var v3 = new mx.data.binding.ObjectDumper();
if (v2 == undefined) {
v2 = 100;
}
if (v1 == undefined) {
v1 = 0;
}
return v3.realToString(obj, showFunctions, showUndefined, showXMLstructures, v2, v1);
};
v2.realToString = function (obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var v1 = obj;
var x = 0;
while (x < this.inProgress.length) {
if (this.inProgress[x] == v1) {
return '***';
}
++x;
}
this.inProgress.push(v1);
++indent;
var t = typeof v1;
var result;
if (v1 instanceof XMLNode && showXMLstructures != true) {
result = v1.toString();
} else {
if (v1 instanceof Date) {
result = v1.toString();
} else {
if (t == 'object') {
var v3 = new Array();
if (v1 instanceof Array) {
result = '[';
var i = 0;
while (i < v1.length) {
v3.push(i);
++i;
}
} else {
result = '{';
for (var i in v1) {
v3.push(i);
}
v3.sort();
}
var sep = '';
var v2 = 0;
while (v2 < v3.length) {
var val = v1[v3[v2]];
var show = true;
if (typeof val == 'function') {
show = showFunctions == true;
}
if (typeof val == 'undefined') {
show = showUndefined == true;
}
if (show) {
result += sep;
if (!(v1 instanceof Array)) {
result += v3[v2] + ': ';
}
result += this.realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ', `';
}
++v2;
}
if (v1 instanceof Array) {
result += ']';
} else {
result += '}';
}
} else {
if (t == 'function') {
result = 'function';
} else {
if (t == 'string') {
result = '"' + v1 + '"';
} else {
result = String(v1);
}
}
}
}
}
if (result == 'undefined') {
result = '-';
}
this.inProgress.pop();
return mx.data.binding.ObjectDumper.replaceAll(result, '`', result.length < maxLineLength ? '' : '\n' + this.doIndent(indent));
};
v1.replaceAll = function (str, from, to) {
var v3 = str.split(from);
var result = '';
var v2 = '';
var v1 = 0;
while (v1 < v3.length) {
result += v2 + v3[v1];
v2 = to;
++v1;
}
return result;
};
v2.doIndent = function (indent) {
var v3 = indent;
var v2 = '';
var v1 = 0;
while (v1 < v3) {
v2 += ' ';
++v1;
}
return v2;
};
ASSetPropFlags(mx.data.binding.ObjectDumper.prototype, null, 1);
}
#endinitclip
}
movieClip 217 __Packages.mx.rpc.RelayResponder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.RelayResponder) {
var v1 = function (resp, resultFunc, faultFunc) {
var v1 = this;
super();
v1.__obj = resp;
v1.__onFault = faultFunc;
v1.__onResult = resultFunc;
};
mx.rpc.RelayResponder = v1;
var v2 = new Object();
mx.rpc.RelayResponder.prototype = v2;
v2.onFault = function (fault) {
this.__obj[this.__onFault](fault);
};
v2.onResult = function (result) {
this.__obj[this.__onResult](result);
};
ASSetPropFlags(mx.rpc.RelayResponder.prototype, null, 1);
}
#endinitclip
}
movieClip 218 __Packages.mx.rpc.DefaultResponder {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.rpc) {
_global.mx.rpc = new Object();
}
if (!_global.mx.rpc.DefaultResponder) {
var v1 = function (t) {
this.__set__target(t);
};
mx.rpc.DefaultResponder = v1;
var v2 = v1.prototype;
v2.__get__target = function () {
return this.__target;
};
v2.__set__target = function (t) {
this.__target = t;
return this.__get__target();
};
v2.onResult = function (event) {
trace('RPC Result: ' + event.__get__result());
};
v2.onFault = function (event) {
trace('RPC Fault: ' + event.fault.faultstring);
};
v2.addProperty('target', v2.__get__target, v2.__set__target);
ASSetPropFlags(mx.rpc.DefaultResponder.prototype, null, 1);
}
#endinitclip
}
movieClip 219 __Packages.mx.controls.ProgressBar {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.controls) {
_global.mx.controls = new Object();
}
if (!_global.mx.controls.ProgressBar) {
var v1 = function () {
super();
};
mx.controls.ProgressBar = v1;
var v2 = new mx.core.UIObject();
mx.controls.ProgressBar.prototype = v2;
v2.init = function (Void) {
super.init();
this._yscale = 100;
this._xscale = 100;
this.tabEnabled = false;
this.boundingBox_mc._visible = false;
this.boundingBox_mc._height = 0;
this.boundingBox_mc._width = 0;
};
v2.createChildren = function (Void) {
if (this.progTrackLeft_mc == undefined) {
this.setSkin(this.skinIDProgTrackLeft, this.progTrackLeftName);
}
if (this.progTrackMiddle_mc == undefined) {
this.setSkin(this.skinIDProgTrackMiddle, this.progTrackMiddleName);
}
if (this.progTrackRight_mc == undefined) {
this.setSkin(this.skinIDProgTrackRight, this.progTrackRightName);
}
if (this.progBarLeft_mc == undefined) {
this.setSkin(this.skinIDProgBarLeft, this.progBarLeftName);
}
if (this.progBarMiddle_mc == undefined) {
this.setSkin(this.skinIDProgBarMiddle, this.progBarMiddleName);
}
if (this.progBarRight_mc == undefined) {
this.setSkin(this.skinIDProgBarRight, this.progBarRightName);
}
if (this.progIndBar_mc == undefined) {
this.setSkin(this.skinIDProgIndBar, this.progIndBarName);
this.progIndBar_mc._visible = false;
}
if (this.mask_mc == undefined) {
this.mask_mc = this.createObject('BoundingBox', 'mask_mc', this.skinIDMask);
this.mask_mc._visible = false;
this.progIndBar_mc.setMask(this.mask_mc);
}
if (this.labelPath == undefined) {
this.labelPath = this.createLabel('labelPath', this.skinIDLabel);
this.labelPath.tabEnabled = false;
this.labelPath.selectable = false;
this.labelPath.styleName = this;
}
this.setSize(this.__width, this.__height);
};
v2.size = function (Void) {
this.invalidate();
};
v2.draw = function (Void) {
if (this.__source == undefined && this.__stringSource != undefined) {
this.setSource(this.__stringSource);
this.__stringSource = undefined;
}
var v14 = this.__width;
var v22 = this.__height;
var v5 = this.progBarLeft_mc._width > this.progTrackLeft_mc._width ? this.progBarLeft_mc._width : this.progTrackLeft_mc._width;
var v6 = this.progBarLeft_mc._height > this.progTrackLeft_mc._height ? this.progBarLeft_mc._height : this.progTrackLeft_mc._height;
var v15 = this.progBarRight_mc._width > this.progTrackRight_mc._width ? this.progBarRight_mc._width : this.progTrackRight_mc._width;
var v7 = v14;
var v8 = 0;
var v9 = 0;
if (this.__labelPlacement == 'top') {
v8 = v22 - v6;
}
if (this.__label != undefined && this.__label != '') {
this.labelPath._visible = false;
var v11 = 1;
var v20 = 1;
var v18 = 5;
var v26 = 4;
var v12 = this.__value - this.__minimum;
if (v12 < 0) {
v12 = 0;
}
var v13 = this.__maximum - this.__minimum;
if (v13 < 0) {
v13 = 0;
}
if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') {
var v4 = this.__label;
if (!this.__indeterminate) {
v4 = this.replace(v4, '%1', String(Math.floor(v13 / this.__conversion)));
v4 = this.replace(v4, '%2', String(Math.floor(v13 / this.__conversion)));
v4 = this.replace(v4, '%3', String(100));
v4 = this.replace(v4, '%%', '%');
} else {
v4 = this.replace(v4, '%1', String(Math.floor(v12 / this.__conversion)));
v4 = this.replace(v4, '%2', '??');
v4 = this.replace(v4, '%3', '');
v4 = this.replace(v4, '%%', '');
}
this.labelPath.text = v4;
v7 = v14 - (this.labelPath.textWidth + v18 + v11);
if (v7 < v5 + v15) {
v7 = 0;
}
if (this.__labelPlacement == 'left') {
v9 = v14 - v7;
}
}
var v3 = this.__label;
if (!this.__indeterminate) {
v3 = this.replace(v3, '%1', String(Math.floor(v12 / this.__conversion)));
v3 = this.replace(v3, '%2', String(Math.floor(v13 / this.__conversion)));
v3 = this.replace(v3, '%3', String(Math.floor(this.__get__percentComplete())));
v3 = this.replace(v3, '%%', '%');
} else {
v3 = this.replace(v3, '%1', String(Math.floor(v12 / this.__conversion)));
v3 = this.replace(v3, '%2', '??');
v3 = this.replace(v3, '%3', '');
v3 = this.replace(v3, '%%', '');
}
this.labelPath.text = v3;
var v10 = 0;
if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') {
v10 = v14 - v7 - v11;
} else {
v10 = v14 - v11;
}
if (v10 < this.labelPath.textWidth + v18) {
this.labelPath._width = v10;
} else {
this.labelPath._width = this.labelPath.textWidth + v18;
}
if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right' || this.__labelPlacement == 'center') {
v10 = v22;
} else {
v10 = v22 - v20 - v6;
}
if (v10 < this.labelPath.textHeight + v26) {
this.labelPath._height = v10;
} else {
this.labelPath._height = this.labelPath.textHeight + v26;
}
if (this.__labelPlacement == 'left') {
this.labelPath._x = v11;
} else {
if (this.__labelPlacement == 'right') {
this.labelPath._x = v7 + v11;
} else {
this.labelPath._x = v11;
}
}
if (this.__labelPlacement == 'center' || this.__labelPlacement == 'left' || this.__labelPlacement == 'right') {
this.labelPath._y = v6 / 2 - this.labelPath.height / 2;
} else {
if (this.__labelPlacement == 'top') {
this.labelPath._y = v8 - v20 - this.labelPath.height;
} else {
this.labelPath._y = v6 + v20;
}
}
this.labelPath._visible = true;
} else {
this.labelPath.text = '';
this.labelPath._visible = false;
}
if (v7 >= v5 + v15) {
var v2 = this.progTrackLeft_mc.getBounds(this.progTrackLeft_mc);
var v42 = -v2.xMin;
var v41 = -v2.yMin;
this.progTrackLeft_mc.move(v9 + v5 - this.progTrackLeft_mc._width + v42, v8 + (v6 - this.progTrackLeft_mc._height) / 2 + v41);
v2 = this.progTrackMiddle_mc.getBounds(this.progTrackMiddle_mc);
var v38 = -v2.xMin;
var v35 = -v2.yMin;
this.progTrackMiddle_mc.setSize(v7 - v5 - v15, this.progTrackMiddle_mc._height);
this.progTrackMiddle_mc.move(v9 + v5 + v38, v8 + (v6 - this.progTrackLeft_mc._height) / 2 + v35);
v2 = this.progTrackRight_mc.getBounds(this.progTrackRight_mc);
var v31 = -v2.xMin;
var v32 = -v2.yMin;
this.progTrackRight_mc.move(v9 + v5 + this.progTrackMiddle_mc._width + v31, v8 + (v6 - this.progTrackRight_mc._height) / 2 + v32);
var v21 = v7 - v5 - v15;
var v16 = v21 * this.__get__percentComplete() / 100;
var v17 = 0;
if (this.__indeterminate == true) {
v16 = v21;
this.mask_mc._width = v16;
this.mask_mc._height = this.progIndBar_mc._height;
this.mask_mc._x = v9 + v5;
this.mask_mc._y = v8 + (v6 - this.progIndBar_mc._height) / 2;
this.progIndBar_mc._width = v7 * 200 / 150;
var v28 = this.progIndBar_mc._x;
v2 = this.progIndBar_mc.getBounds(this.progIndBar_mc);
var v30 = -v2.xMin;
var v29 = -v2.yMin;
var v19 = v9 + v5 + v30;
var v23 = this.progIndBar_mc._width * 50 / 200;
var v25 = this.progIndBar_mc._width * 20 / 200;
var v24 = 3;
var v27 = v23;
if (this.__direction == 'left') {
v23 = this.progIndBar_mc._width * 30 / 200;
v25 = 0;
v24 = -3;
v27 = v25;
}
if (v28 <= v19 - v23 || v28 >= v19 - v25) {
this.progIndBar_mc._x = v19 - v27 + v24;
} else {
this.progIndBar_mc._x += v24;
}
this.progIndBar_mc._y = v8 + (v6 - this.progIndBar_mc._height) / 2 + v29;
this.progIndBar_mc._visible = true;
this.invalidate();
} else {
this.progIndBar_mc._visible = false;
if (this.__direction == 'left') {
v17 = v21 - v16;
}
}
v2 = this.progBarMiddle_mc.getBounds(this.progBarMiddle_mc);
var v40 = -v2.xMin;
var v39 = -v2.yMin;
this.progBarMiddle_mc.setSize(v16, this.progBarMiddle_mc._height);
this.progBarMiddle_mc.move(v17 + v9 + v5 + v40, v8 + (v6 - this.progBarLeft_mc._height) / 2 + v39);
v2 = this.progBarLeft_mc.getBounds(this.progBarLeft_mc);
var v36 = -v2.xMin;
var v33 = -v2.yMin;
this.progBarLeft_mc.move(v17 + v9 + v5 - this.progBarLeft_mc._width + v36, v8 + (v6 - this.progBarLeft_mc._height) / 2 + v33);
v2 = this.progBarRight_mc.getBounds(this.progBarRight_mc);
var v34 = -v2.xMin;
var v37 = -v2.yMin;
this.progBarRight_mc.move(v17 + v9 + v5 + this.progBarMiddle_mc._width + v34, v8 + (v6 - this.progBarRight_mc._height) / 2 + v37);
this.progTrackLeft_mc._visible = true;
this.progTrackMiddle_mc._visible = true;
this.progTrackRight_mc._visible = true;
this.progBarLeft_mc._visible = true;
this.progBarMiddle_mc._visible = true;
this.progBarRight_mc._visible = true;
} else {
this.progTrackLeft_mc._visible = false;
this.progTrackMiddle_mc._visible = false;
this.progTrackRight_mc._visible = false;
this.progBarLeft_mc._visible = false;
this.progBarMiddle_mc._visible = false;
this.progBarRight_mc._visible = false;
}
};
v2.replace = function (str, from, to) {
var v1 = str.split(from);
var v2 = v1.join(to);
return v2;
};
v2.getMode = function (Void) {
return this.__mode;
};
v2.setMode = function (val) {
if (val == 'polled' || val == 'manual') {
this.__mode = val;
} else {
delete this.__mode;
}
this.invalidate();
};
v2.getDirection = function (Void) {
return this.__direction;
};
v2.setDirection = function (val) {
if (val == 'left') {
this.__direction = val;
} else {
delete this.__direction;
}
this.invalidate();
};
v2.getLabelPlacement = function (Void) {
return this.__labelPlacement;
};
v2.setLabelPlacement = function (val) {
if (val == 'top' || val == 'center' || val == 'left' || val == 'right') {
this.__labelPlacement = val;
} else {
delete this.__labelPlacement;
}
this.invalidate();
};
v2.getIndeterminate = function (Void) {
return this.__indeterminate;
};
v2.setIndeterminate = function (val) {
if (val == true) {
this.__indeterminate = true;
} else {
delete this.__indeterminate;
}
this.invalidate();
};
v2.getLabel = function (Void) {
return this.__label;
};
v2.setLabel = function (val) {
this.__label = val;
this.invalidate();
};
v2.getConversion = function (Void) {
return this.__conversion;
};
v2.setConversion = function (val) {
if (!_global.isNaN(val) && Number(val) > 0) {
this.__conversion = Number(val);
this.invalidate();
}
};
v2.getSource = function (Void) {
return this.__source;
};
v2.setSource = function (val) {
if (typeof val == 'string') {
this.__stringSource = val;
val = eval(val);
}
if (val != null && val != undefined && val != '') {
this.__source = val;
if (this.__mode == 'event') {
if (this.__source.addEventListener) {
this.__source.addEventListener('progress', this);
this.__source.addEventListener('complete', this);
} else {
this.__source = undefined;
}
}
if (this.__mode == 'polled') {
this.si = setInterval(this, 'update', this.__interval);
}
} else {
if (this.__source != null) {
delete this.__source;
clearInterval(this.si);
delete this.si;
}
}
};
v2.update = function (Void) {
var v2 = this.__source;
var v3 = v2.getBytesLoaded();
var v4 = v2.getBytesTotal();
this._setProgress(v3, v4);
if (this.__get__percentComplete() >= 100 && this.__value > 0) {
clearInterval(this.si);
}
};
v2.progress = function (pEvent) {
var v2 = pEvent.target;
var v3 = v2.bytesLoaded;
var v4 = v2.bytesTotal;
this._setProgress(v3, v4);
};
v2.complete = function (pEvent) {};
v2._setProgress = function (completed, total) {
if (!_global.isNaN(completed) && !_global.isNaN(total)) {
this.__value = Number(completed);
this.__maximum = Number(total);
this.dispatchEvent({'type': 'progress', 'current': completed, 'total': total});
if (this.__value == this.__maximum && this.__value > 0) {
this.dispatchEvent({'type': 'complete', 'current': completed, 'total': total});
}
this.invalidate();
}
};
v2.setProgress = function (completed, total) {
if (this.__mode == 'manual') {
this._setProgress(completed, total);
}
};
v2.getPercentComplete = function (Void) {
if (this.__value < this.__minimum || this.__maximum < this.__minimum) {
return 0;
}
var v3 = 100 * (this.__value - this.__minimum) / (this.__maximum - this.__minimum);
if (_global.isNaN(v3) || v3 < 0) {
return 0;
} else {
if (v3 > 100) {
return 100;
} else {
return v3;
}
}
};
v2.getMaximum = function (Void) {
return this.__maximum;
};
v2.setMaximum = function (val) {
if (!_global.isNaN(val) && this.__mode == 'manual') {
this.__maximum = Number(val);
this.invalidate();
}
};
v2.getMinimum = function (Void) {
return this.__minimum;
};
v2.setMinimum = function (val) {
if (!_global.isNaN(val) && this.__mode == 'manual') {
this.__minimum = Number(val);
this.invalidate();
}
};
v2.getVal = function (Void) {
return this.__value;
};
v2.__get__mode = function () {
return this.getMode();
};
v2.__set__mode = function (x) {
this.setMode(x);
return this.__get__mode();
};
v2.__get__source = function () {
return this.getSource();
};
v2.__set__source = function (x) {
this.setSource(x);
return this.__get__source();
};
v2.__get__direction = function () {
return this.getDirection();
};
v2.__set__direction = function (x) {
this.setDirection(x);
return this.__get__direction();
};
v2.__get__label = function () {
return this.getLabel();
};
v2.__set__label = function (x) {
this.setLabel(x);
return this.__get__label();
};
v2.__get__labelPlacement = function () {
return this.getLabelPlacement();
};
v2.__set__labelPlacement = function (x) {
this.setLabelPlacement(x);
return this.__get__labelPlacement();
};
v2.__get__indeterminate = function () {
return this.getIndeterminate();
};
v2.__set__indeterminate = function (x) {
this.setIndeterminate(x);
return this.__get__indeterminate();
};
v2.__get__conversion = function () {
return this.getConversion();
};
v2.__set__conversion = function (x) {
this.setConversion(x);
return this.__get__conversion();
};
v2.__get__percentComplete = function () {
return this.getPercentComplete();
};
v2.__get__maximum = function () {
return this.getMaximum();
};
v2.__set__maximum = function (x) {
this.setMaximum(x);
return this.__get__maximum();
};
v2.__get__minimum = function () {
return this.getMinimum();
};
v2.__set__minimum = function (x) {
this.setMinimum(x);
return this.__get__minimum();
};
v2.__get__value = function () {
return this.getVal();
};
v1.symbolName = 'ProgressBar';
v1.symbolOwner = Object(mx.controls.ProgressBar);
v2.className = 'ProgressBar';
v1.version = '2.0.2.126';
v2.__mode = 'event';
v2.__direction = 'right';
v2.__labelPlacement = 'bottom';
v2.__label = 'LOADING %3%% ';
v2.__conversion = 1;
v2.__maximum = 0;
v2.__minimum = 0;
v2.__value = 0;
v2.__indeterminate = false;
v2.progTrackLeftName = 'ProgTrackLeft';
v2.progTrackMiddleName = 'ProgTrackMiddle';
v2.progTrackRightName = 'ProgTrackRight';
v2.progBarLeftName = 'ProgBarLeft';
v2.progBarMiddleName = 'ProgBarMiddle';
v2.progBarRightName = 'ProgBarRight';
v2.progIndBarName = 'ProgIndBar';
v2.idNames = new Array('progTrackLeft_mc', 'progTrackMiddle_mc', 'progTrackRight_mc', 'progBarLeft_mc', 'progBarMiddle_mc', 'progBarRight_mc', 'progIndBar_mc');
v2.skinIDProgTrackLeft = 0;
v2.skinIDProgTrackMiddle = 1;
v2.skinIDProgTrackRight = 2;
v2.skinIDProgBarLeft = 3;
v2.skinIDProgBarMiddle = 4;
v2.skinIDProgBarRight = 5;
v2.skinIDProgIndBar = 6;
v2.skinIDMask = 100;
v2.skinIDLabel = 200;
v2.__interval = 30;
v2.__leave = 2;
v2.clipParameters = {'mode': 1, 'source': 1, 'direction': 1, 'label': 1, 'labelPlacement': 1, 'conversion': 1};
v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
v2.addProperty('conversion', v2.__get__conversion, v2.__set__conversion);
v2.addProperty('direction', v2.__get__direction, v2.__set__direction);
v2.addProperty('indeterminate', v2.__get__indeterminate, v2.__set__indeterminate);
v2.addProperty('label', v2.__get__label, v2.__set__label);
v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement);
v2.addProperty('maximum', v2.__get__maximum, v2.__set__maximum);
v2.addProperty('minimum', v2.__get__minimum, v2.__set__minimum);
v2.addProperty('mode', v2.__get__mode, v2.__set__mode);
v2.addProperty('percentComplete', v2.__get__percentComplete, function () {});
v2.addProperty('source', v2.__get__source, v2.__set__source);
v2.addProperty('value', v2.__get__value, function () {});
ASSetPropFlags(mx.controls.ProgressBar.prototype, null, 1);
}
#endinitclip
}
frame 2 {
function loadFile(cumid) {
logo._visible = false;
uploadBtn._visible = false;
uploadBtn.enabled = false;
instructions._visible = false;
toolbar.enabled = true;
toolbar._visible = true;
sit = new LoadVars();
rit = new LoadVars();
sit.loadid = cumid;
sit.sendAndLoad('/loadstain.php', rit, 'GET');
rit.onLoad = function (success) {
if (success || debug) {
if (debug) {
rit.stainsrc = '30,130.05,137.7,36.5450233402147,36.5450233402147,0,5';
}
var v2 = rit.stainsrc.split(',');
var v11 = v2.length / 7;
var v13 = 0;
var v12 = 0;
myBitch._x = rit.picx;
myBitch._y = rit.picy;
var v3 = 0;
while (v3 < v11) {
var v1 = v3 * 7;
var v10 = int(v2[v1]);
var v9 = int(v2[v1 + 1]);
var v8 = int(v2[v1 + 2]);
var v7 = int(v2[v1 + 3]);
var v6 = int(v2[v1 + 4]);
var v5 = int(v2[v1 + 5]);
var v4 = int(v2[v1 + 6]);
stainarray.push([v10, v9, v8, v7, v6, v5, v4]);
++v3;
}
if (debug) {
downloadImage('test.jpg');
} else {
downloadImage(rit.picsrc);
}
}
};
}
function screenshot() {
pn = new it.sephiroth.PrintScreen();
pn.addListener(printme);
pn.print(this, 0, 0, maskme._width, maskme._height);
loader.__set__label('computing... 0%');
loader.open(true, true, true);
}
function uploadImage(event) {
var v1 = new flash.net.FileReference();
v1.addListener(listener);
v1.browse([{'description': 'Image Files', 'extension': '*.jpg;*.gif;*.png'}]);
}
function imageDownloaded(event) {
if (event.total == -1) {
statusArea.text = 'error';
}
}
function downloadImage(file) {
function showImage() {
function stainblur() {
var v1 = laststain;
var v4 = new flash.filters.BlurFilter(5, 5, 4);
var v3 = [1, 4, 6, 4, 1, 4, 16, 24, 16, 4, 16, 6, 24, 36, 24, 6, 4, 16, 24, 16, 4, 1, 4, 6, 4, 1];
var v2 = new flash.filters.ConvolutionFilter(5, 5, v3);
v2.divisor = 13550;
v2.bias = 25000;
v1.filterList.push(v2);
v1.filters = v1.filterList;
}
function startmask() {
maskEnabled = true;
brushsize = 10;
createEmptyMovieClip('circle', 10);
var v4 = brushsize;
var v8 = 0;
var v7 = 0;
var v9 = 0.4142135623730951;
var v5;
var v6;
var v11;
var v10;
circle.beginFill(16777215, 70);
circle.moveTo(v4 + v8, v7);
var v3 = 45;
while (v3 <= 360) {
v5 = v4 * Math.cos(v3 * Math.PI / 180);
v6 = v4 * Math.sin(v3 * Math.PI / 180);
v11 = v5 + v4 * v9 * Math.cos((v3 - 90) * Math.PI / 180);
v10 = v6 + v4 * v9 * Math.sin((v3 - 90) * Math.PI / 180);
circle.curveTo(v11 + v8, v10 + v7, v5 + v8, v6 + v7);
v3 += 45;
}
circle.endFill();
circle._visible = false;
createEmptyMovieClip('line', _root.getNextHighestDepth());
line.createEmptyMovieClip('drawme', this.getNextHighestDepth());
circle.onPress = function () {
line.drawme.moveTo(_xmouse, _ymouse);
line.drawme.lineStyle(brushsize * 2, 11154227, 100);
this.onEnterFrame = function () {
line.drawme.lineTo(_xmouse, _ymouse);
};
};
circle.onRelease = function () {
delete this.onEnterFrame;
laststain.setMask(line);
};
circle.onMouseMove = function () {
Mouse.hide();
circle._visible = true;
circle._x = _xmouse;
circle._y = _ymouse;
if (_xmouse > 500) {
Mouse.show();
circle._visible = false;
}
};
}
function endmask() {
Mouse.show();
circle.removeMovieClip();
maskEnabled = false;
}
function onMove(event_obj) {
var v1 = event_obj.targetObject;
if (!v1.scaleX) {
v1.scaleY = 0;
v1.scaleX = 0;
}
v1.offsetX = pic._x - v1._x;
v1.offsetY = pic._y - v1._y;
v1.filter = new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, v1.scaleX, v1.scaleY);
v1.newPoint = new flash.geom.Point(v1.offsetX, v1.offsetY);
v1.filter.mapPoint = v1.newPoint;
v1.filterList = new Array();
v1.filterList.push(v1.filter);
v1.filters = v1.filterList;
}
function onRotate(event_obj) {
var v1 = event_obj.targetObject;
v1.offsetX = pic._x - v1._x;
v1.offsetY = pic._y - v1._y;
if (!v1.scaleX) {
v1.scaleY = 0;
v1.scaleX = 0;
}
v1.filter = new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, v1.scaleX, v1.scaleY);
v1.newPoint = new flash.geom.Point(v1.offsetX, v1.offsetY);
v1.filter.mapPoint = v1.newPoint;
v1.filterList = new Array();
v1.filterList.push(v1.filter);
v1.filters = v1.filterList;
}
function onAnyEvent(event_obj) {
laststain = event_obj.targetObject;
stainarray[laststain.num][1] = laststain._x;
stainarray[laststain.num][2] = laststain._y;
stainarray[laststain.num][3] = laststain._xscale;
stainarray[laststain.num][4] = laststain._yscale;
stainarray[laststain.num][5] = laststain._rotation;
toolbar.slider.dragger._x = stainarray[laststain.num][0];
trace(stainarray);
}
function movePic() {
myBitch.enabled = true;
isMoving = true;
var v1 = new gs.TransformManager({'targetObjects': targetarray, 'lockRotation': true, 'lockScale': true, 'eventHandler': onBitchEvent});
v1.addItem(myBitch);
}
function onBitchEvent(event_obj) {
if (event_obj.action == 'select') {
manager_obj.deselect();
}
}
function stopmovePic() {
isMoving = false;
myBitch.enabled = false;
manager_bitch.deselect();
}
function removeAllStains() {
i = 0;
trace('removed all');
s = 0;
while (s < stainarray.length) {
cc = _root['myCum_' + s];
manager_obj.destroy(cc);
manager_obj.deselect();
cc.removeMovieClip();
targetarray = new Array();
++s;
}
}
function deletestain() {
stainarray[laststain.num][6] = '';
laststain.removeMovieClip();
manager_obj.deselect();
}
logo._visible = false;
toolbar._visible = true;
toolbar.enabled = true;
var pic = myBitch;
pic.attachBitmap(bmp, 0);
uploadBtn._visible = false;
uploadBtn.enabled = false;
instructions._visible = false;
var mapBitmap = new flash.display.BitmapData(pic._width, pic._height);
mapBitmap.draw(pic);
pic._visible = true;
var mapPoint = new flash.geom.Point(0, 0);
var componentX = 4;
var componentY = 4;
var scaleX = 0;
var scaleY = 0;
var i = 0;
var manager_obj = new gs.TransformManager({'targetObjects': targetarray, 'forceSelectionToFront': true, 'lockRotation': true, 'eventHandler': onAnyEvent});
manager_obj.addEventListener('move', onMove);
manager_obj.addEventListener('rotate', onRotate);
_global.addStain = function (s) {
duplicateMovieClip(myCum, 'myCum_' + i, i);
toolbar.swapDepths(getNextHighestDepth());
var v2 = _root['myCum_' + i];
v2._x = 0;
v2._y = 0;
v2.attachMovie('stain' + s, 'stain', 0);
v2.attachMovie('padding', 'padding', 1);
v2.padding._width = v2.stain._width;
v2.padding._height = v2.stain._height;
cc.scaleY = 0;
cc.scaleX = 0;
v2.num = i;
if (newstain) {
stainarray.push([0, 0, 0, v2._width, v2._height, 0, s]);
}
targetarray.push(v2);
v2.blendMode = 'hardlight';
++i;
toolbar.slider.dragger._x = 0;
manager_obj.addItem(v2);
laststain = v2;
};
_global.stainstrength = function (cc, amount) {
cc.scaleX = amount;
scaleX = cc.scaleX;
cc.scaleY = amount;
scaleY = cc.scaleY;
cc.offsetX = pic._x - cc._x;
cc.offsetY = pic._y - cc._y;
cc.filter = new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY);
cc.newPoint = new flash.geom.Point(cc.offsetX, cc.offsetY);
cc.filter.mapPoint = cc.newPoint;
cc.filterList = new Array();
cc.filterList.push(cc.filter);
cc.filters = cc.filterList;
cc.padding._width = cc.stain._width + scaleX;
cc.padding._height = cc.stain._height + scaleY;
};
maskEnabled = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
newstain = true;
if (Key.isDown(48)) {
addStain(11);
}
if (Key.isDown(49)) {
addStain(1);
}
if (Key.isDown(50)) {
addStain(2);
}
if (Key.isDown(51)) {
addStain(3);
}
if (Key.isDown(52)) {
addStain(4);
}
if (Key.isDown(53)) {
addStain(5);
}
if (Key.isDown(54)) {
addStain(6);
}
if (Key.isDown(55)) {
addStain(7);
}
if (Key.isDown(56)) {
addStain(8);
}
if (Key.isDown(57)) {
addStain(9);
}
if (Key.isDown(58)) {
addStain(10);
}
if (Key.isDown(72)) {
if (!isMoving) {
movePic();
} else {
stopmovePic();
}
}
if (Key.isDown(68)) {
deletestain();
}
};
Key.addListener(keyListener);
update();
var gf = new flash.filters.GlowFilter(9300971, 100, 1, 1, 2, 10, false, false);
var gg = new flash.filters.GlowFilter(9300971, 100, 1, 1, 2, 10, false, false);
toolbar.newbtn.onRollOver = function () {
this.filters = [gg];
this.onEnterFrame = function () {
if (gg.blurX < 10) {
gg.blurX += 2;
gg.blurY += 2;
} else {
delete this.onEnterFrame;
}
this.filters = [gg];
};
};
toolbar.newbtn.onRollOut = function () {
this.filters = [gg];
this.onEnterFrame = function () {
if (gg.blurX > 0) {
gg.blurX -= 2;
gg.blurY -= 2;
this.filters = [gg];
} else {
delete this.onEnterFrame;
this.filters = undefined;
}
};
};
toolbar.savebtn.onRollOver = function () {
this.filters = [gf];
this.onEnterFrame = function () {
if (gf.blurX < 10) {
gf.blurX += 2;
gf.blurY += 2;
} else {
delete this.onEnterFrame;
}
this.filters = [gf];
};
};
toolbar.savebtn.onRollOut = function () {
this.filters = [gf];
this.onEnterFrame = function () {
if (gf.blurX > 0) {
gf.blurX -= 2;
gf.blurY -= 2;
this.filters = [gf];
} else {
delete this.onEnterFrame;
this.filters = undefined;
}
};
};
toolbar.newbtn.onRelease = function () {
removeAllStains();
stainarray = new Array();
uploadBtn.enabled = true;
uploadBtn._visible = true;
statusArea._visible = true;
pic.removeMovieClip();
pic._visible = false;
Key.removeListener(keyListener);
mcl.removeListener(loadlistener);
myBitch.removeEventListener(imageDownloaded);
toolbar.slider.dragger._x = 0;
statusArea.text = '';
toolbar._visible = false;
toolbar.enabled = false;
logo._visible = true;
instructions._visible = true;
};
toolbar.savebtn.onRelease = function () {
savedialog._visible = true;
savedialog.swapDepths(getNextHighestDepth());
sit = new LoadVars();
rit = new LoadVars();
sit.pic = getfile;
sit.picx = myBitch._x;
sit.picy = myBitch._y;
sit.stainarray = stainarray;
sit.sendAndLoad('/set.php', rit, 'GET');
rit.onLoad = function (success) {
if (success) {
keyv = rit.keyv;
savedialog.gotoAndStop(2);
savedialog.linkcode = 'http://cumgen.com/view/' + rit.keyv;
savedialog.continuebtn.onRollOver = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX < 10) {
ug.blurX += 2;
ug.blurY += 2;
} else {
delete this.onEnterFrame;
}
this.filters = [ug];
};
};
savedialog.continuebtn.onReleaseOutside = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX > 0) {
ug.blurX -= 2;
ug.blurY -= 2;
this.filters = [ug];
} else {
delete this.onEnterFrame;
this.filters = undefined;
}
};
};
savedialog.continuebtn.onRollOut = savedialog.continuebtn.onReleaseOutside;
savedialog.continuebtn.onRelease = function () {
savedialog.gotoAndStop(1);
savedialog._visible = false;
};
} else {
savedialog.gotoAndStop(3);
savedialog.continuebtn.onRollOver = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX < 10) {
ug.blurX += 2;
ug.blurY += 2;
} else {
delete this.onEnterFrame;
}
this.filters = [ug];
};
};
savedialog.continuebtn.onReleaseOutside = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX > 0) {
ug.blurX -= 2;
ug.blurY -= 2;
this.filters = [ug];
} else {
delete this.onEnterFrame;
this.filters = undefined;
}
};
};
savedialog.continuebtn.onRollOut = savedialog.continuebtn.onReleaseOutside;
savedialog.continuebtn.onRelease = function () {
savedialog.gotoAndStop(1);
savedialog._visible = false;
};
}
};
};
}
var bmp;
var dummy = this.createEmptyMovieClip('dummy_mc', this.getNextHighestDepth());
var loadlistener = new Object();
var mcl = new MovieClipLoader();
mcl.addListener(loadlistener);
loadlistener.onProgress = function (file, bytesLoaded, bytesTotal) {
progressbar.setProgress(bytesLoaded, bytesTotal);
};
loadlistener.onLoadInit = function (mc) {
bmp = new flash.display.BitmapData(mc._width, mc._height);
bmp.draw(mc);
mcl.unloadClip(dummy);
dummy.removeMovieClip();
statusArea._visible = false;
progressbar._visible = false;
showImage();
};
if (!debug) {
mcl.loadClip('/files/' + file, dummy);
}
if (debug) {
mcl.loadClip('http://cumgen/files/test.jpg', dummy);
file = 'test.jpg';
}
getfile = file;
}
System.security.allowDomain('cumgen.com');
listener = new Object();
var debug = false;
print_btn.enabled = false;
print_btn._visible = false;
toolbar._visible = false;
toolbar.enabled = false;
progressbar._visible = false;
var newstain = false;
savedialog._visible = false;
var getfile = new Object();
var laststain = new Object();
stainarray = new Array();
targetarray = new Array();
update = function () {
newstain = false;
s = 0;
while (s < stainarray.length) {
addStain(stainarray[s][6]);
var v1 = laststain;
v1._x = stainarray[s][1];
v1._y = stainarray[s][2];
v1.offsetX = pic._x - v1._x;
v1.offsetY = pic._y - v1._y;
v1._xscale = stainarray[s][3];
v1._yscale = stainarray[s][4];
v1._rotation = stainarray[s][5];
v1.filter = new flash.filters.DisplacementMapFilter(mapBitmap, mapPoint, componentX, componentY, scaleX, scaleY);
v1.newPoint = new flash.geom.Point(v1.offsetX, v1.offsetY);
v1.filter.mapPoint = v1.newPoint;
v1.filterList = new Array();
v1.filterList.push(v1.filter);
v1.filters = v1.filterList;
stainstrength(v1, stainarray[s][0]);
++s;
}
};
if (cumid || debug) {
loadFile(cumid);
}
var isMoving = false;
var ug = new flash.filters.GlowFilter(9300971, 100, 1, 1, 2, 10, false, false);
uploadBtn.onRollOver = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX < 10) {
ug.blurX += 2;
ug.blurY += 2;
} else {
delete this.onEnterFrame;
}
this.filters = [ug];
};
};
uploadBtn.onReleaseOutside = function () {
this.filters = [ug];
this.onEnterFrame = function () {
if (ug.blurX > 0) {
ug.blurX -= 2;
ug.blurY -= 2;
this.filters = [ug];
} else {
delete this.onEnterFrame;
this.filters = undefined;
}
};
};
uploadBtn.onRollOut = uploadBtn.onReleaseOutside;
var loader = this.createClassObject(it.sephiroth.mloaderWindow, 'loader', 10, {'_x': -1000, '_y': -1000});
loader.setStyle('borderColor', 26265);
var printme = new Object();
printme.onProgress = function (target, loaded, total) {
var v1 = Math.round((loaded / total) * 100);
loader.__set__label('computing... ' + v1 + '%');
loader.__set__value(v1);
};
printme.onComplete = function (target, load_var) {
loader.__set__label('sending to php...');
load_var.send('/pixels.php', '_blank', 'POST');
loader.close();
};
print_btn.onPress = function () {
screenshot();
};
listener.onSelect = function (selectedFile) {
details.text = '';
statusArea.text = '';
statusArea.text += 'Attempting to upload ' + selectedFile.name + '\n';
selectedFile.upload('/upload.php');
};
listener.onOpen = function (selectedFile) {
statusArea.text += 'Uploading ' + selectedFile.name + '\n';
};
listener.onHTTPError = function (file, httpError) {
statusArea.text += 'HTTPError number: ' + httpError + '\nFile: ' + file.name;
};
listener.onProgress = function (file, bytesLoaded, bytesTotal) {
if (file.size > 500000) {
statusArea.text = 'File size is too large. Please make it smaller';
var v2 = new flash.net.FileReference();
file.removeListener(listener);
} else {
uploadBtn._visible = false;
uploadBtn.enabled = false;
progressbar._visible = false;
statusArea.text = file.name + ' - ' + Math.ceil((bytesLoaded / bytesTotal) * 100) + '%\n';
}
};
listener.onIOError = function (file) {
statusArea.text += 'IOError: ' + file.name;
if (debug) {
downloadImage(selectedFile.name);
}
};
listener.onSecurityError = function (file, errorString) {
statusArea.text += 'SecurityError: ' + SecurityError + '\nFile: ' + file.name;
};
listener.onComplete = function (selectedFile) {
statusArea.text += 'Upload finished. Setting up image.\n';
downloadImage(selectedFile.name);
};
uploadBtn.onRelease = uploadImage;
myBitch.addEventListener('complete', imageDownloaded);
ratiotxt.text = 0;
toolbar.slider.dragger.onPress = function () {
this.xratio = stainarray[laststain.num][0];
this.startDrag(true, 0, 0, toolbar.slider.line._width, 0);
this.onEnterFrame = function () {
xratio = this._x;
stainstrength(laststain, stainarray[laststain.num][0]);
stainarray[laststain.num][0] = xratio;
};
};
toolbar.slider.dragger.onReleaseOutside = function () {
this.stopDrag();
delete this.onEnterFrame;
};
toolbar.slider.dragger.onRelease = toolbar.slider.dragger.onReleaseOutside;
stop();
}
movieClip 247 {
}
instance progressbar of movieClip 246 ProgressBar {
onClipEvent (construct) {
conversion = 1;
direction = 'right';
label = 'LOADING %3%% ';
labelPlacement = 'bottom';
mode = 'event';
source = '';
visible = true;
minHeight = 0;
minWidth = 0;
}
}
// unknown tag 88 length 84
movieClip 250 {
}
instance print_btn of movieClip 105 Button {
onClipEvent (construct) {
icon = '';
label = 'Print!';
labelPlacement = 'right';
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
}
movieClip 256 {
}
// unknown tag 88 length 135
movieClip 259 {
}
movieClip 261 {
}
movieClip 263 {
}
movieClip 266 {
}
movieClip 267 {
}
// unknown tag 88 length 79
movieClip 272 {
}
movieClip 329 {
frame 126 {
stop();
}
}
movieClip 332 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
// unknown tag 88 length 548
movieClip 335 {
frame 1 {
stop();
}
}
movieClip 337 {
}
// unknown tag 88 length 564
movieClip 341 {
}
movieClip 342 {
}
movieClip 343 {
}
movieClip 344 {
}
movieClip 345 {
}
movieClip 346 {
}
movieClip 347 {
}
movieClip 348 {
}
movieClip 349 {
}
movieClip 350 {
}
movieClip 351 {
}
movieClip 352 {
}
movieClip 353 {
}
movieClip 354 {
}
movieClip 355 {
}
movieClip 356 {
}
movieClip 357 {
}
movieClip 358 {
}
movieClip 359 {
}
movieClip 360 {
}
movieClip 361 {
}
movieClip 362 {
}
// unknown tag 88 length 130
button 368 {
on (release) {
Selection.setFocus('linkcode');
Selection.setSelection();
}
}
movieClip 370 {
}
movieClip 372 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}