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

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

Top Trial Bike.swf

This is the info page for
Flash #23969

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 BoundingBox { } movieClip 4 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 5 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 6 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 9 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 10 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 11 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 12 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 13 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 14 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 17 ProgBarCapThemeColor { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 19 ProgBarRight { } movieClip 22 ProgBarLeft { } movieClip 25 ProgBarMiddleThemeColor { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 26 ProgBarMiddle { } movieClip 29 ProgBarIndThemeColor { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 30 ProgBarIndMiddleThemeColor { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 32 ProgIndBar { } movieClip 34 ProgTrackLeft { } movieClip 36 ProgTrackMiddle { } movieClip 38 ProgTrackRight { } movieClip 39 ProgressBarAssets { } movieClip 40 ProgressBar { #initclip Object.registerClass('ProgressBar', mx.controls.ProgressBar); #endinitclip frame 1 { stop(); } } movieClip 42 { } movieClip 44 { } movieClip 46 { } movieClip 48 { } movieClip 50 { } movieClip 52 { } movieClip 53 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 54 { } movieClip 55 { } movieClip 56 { } movieClip 58 { } movieClip 59 { } movieClip 61 { } movieClip 62 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 63 { } movieClip 64 { } movieClip 65 { } movieClip 66 { } movieClip 68 { } movieClip 70 { } movieClip 71 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'foregroundDisabled'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 72 DownArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 74 { } movieClip 75 { } movieClip 76 { } movieClip 77 { } movieClip 78 { frame 1 { var component = _parent._parent; component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 79 { } movieClip 81 { } movieClip 83 { } movieClip 84 { } movieClip 85 { } movieClip 86 { frame 1 { var component = _parent._parent; component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 87 { } movieClip 89 { } movieClip 90 { } movieClip 91 { frame 1 { var component = _parent._parent; component.registerSkinElement(highlight3D_mc, 'highlight3D'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); } } movieClip 92 ScrollThumb { frame 1 { stop(); } } movieClip 93 { } movieClip 95 { } movieClip 96 { } movieClip 97 { } movieClip 98 { } movieClip 99 { } movieClip 100 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 101 { } movieClip 102 { } movieClip 103 { } movieClip 104 { } movieClip 105 { } movieClip 107 { } movieClip 108 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'arrow'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 109 { } movieClip 110 { } movieClip 111 { } movieClip 112 { } movieClip 113 { } movieClip 115 { } movieClip 116 { frame 1 { var component = _parent._parent; component.registerSkinElement(arrow_mc, 'foregroundDisabled'); component.registerSkinElement(face_mc, 'face'); component.registerSkinElement(shadow_mc, 'shadow'); component.registerSkinElement(darkshadow_mc, 'darkshadow'); component.registerSkinElement(highlight_mc, 'highlight'); component.registerSkinElement(highlight3D_mc, 'highlight3D'); } } movieClip 117 UpArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 118 FUIComponentSymbol { #initclip function FUIComponentClass() { this.init(); } FUIComponentClass.prototype = new MovieClip(); FUIComponentClass.prototype.init = function () { this.enable = true; this.focused = false; this.useHandCursor = false; this._accImpl = new Object(); this._accImpl.stub = true; this.styleTable = new Array(); if (_global.globalStyleFormat == undefined) { _global.globalStyleFormat = new FStyleFormat(); globalStyleFormat.isGlobal = true; _global._focusControl = new Object(); _global._focusControl.onSetFocus = function (oldFocus, newFocus) { oldFocus.myOnKillFocus(); newFocus.myOnSetFocus(); }; Selection.addListener(_global._focusControl); } if (this._name != undefined) { this._focusrect = false; this.tabEnabled = true; this.focusEnabled = true; this.tabChildren = false; this.tabFocused = true; if (this.hostStyle == undefined) { globalStyleFormat.addListener(this); } else { this.styleTable = this.hostStyle; } this.deadPreview._visible = false; this.deadPreview._height = 1; this.deadPreview._width = 1; this.methodTable = new Object(); this.keyListener = new Object(); this.keyListener.controller = this; this.keyListener.onKeyDown = function () { this.controller.myOnKeyDown(); }; this.keyListener.onKeyUp = function () { this.controller.myOnKeyUp(); }; for (var v3 in this.styleFormat_prm) { this.setStyleProperty(v3, this.styleFormat_prm[v3]); } } }; FUIComponentClass.prototype.setEnabled = function (enabledFlag) { this.enable = arguments.length > 0 ? enabledFlag : true; this.focusEnabled = enabledFlag; this.tabEnabled = this.focusEnabled; if (!this.enable && this.focused) { Selection.setFocus(undefined); } }; FUIComponentClass.prototype.getEnabled = function () { return this.enable; }; FUIComponentClass.prototype.setSize = function (w, h) { this.width = w; this.height = h; this.focusRect.removeMovieClip(); }; FUIComponentClass.prototype.setChangeHandler = function (chng, obj) { this.handlerObj = (obj == undefined) ? this._parent : obj; this.changeHandler = chng; }; FUIComponentClass.prototype.invalidate = function (methodName) { this.methodTable[methodName] = true; this.onEnterFrame = this.cleanUI; }; FUIComponentClass.prototype.cleanUI = function () { if (this.methodTable.setSize) { this.setSize(this.width, this.height); } else { this.cleanUINotSize(); } this.methodTable = new Object(); delete this.onEnterFrame; }; FUIComponentClass.prototype.cleanUINotSize = function () { for (var v2 in this.methodTable) { this[v2](); } }; FUIComponentClass.prototype.drawRect = function (x, y, w, h) { var v5 = this.styleTable.focusRectInner.value; var v4 = this.styleTable.focusRectOuter.value; if (v5 == undefined) { v5 = 16777215; } if (v4 == undefined) { v4 = 0; } this.createEmptyMovieClip('focusRect', 1000); this.focusRect.controller = this; this.focusRect.lineStyle(1, v4); this.focusRect.moveTo(x, y); this.focusRect.lineTo(x + w, y); this.focusRect.lineTo(x + w, y + h); this.focusRect.lineTo(x, y + h); this.focusRect.lineTo(x, y); this.focusRect.lineStyle(1, v5); this.focusRect.moveTo(x + 1, y + 1); this.focusRect.lineTo(x + w - 1, y + 1); this.focusRect.lineTo(x + w - 1, y + h - 1); this.focusRect.lineTo(x + 1, y + h - 1); this.focusRect.lineTo(x + 1, y + 1); }; FUIComponentClass.prototype.pressFocus = function () { this.tabFocused = false; this.focusRect.removeMovieClip(); Selection.setFocus(this); }; FUIComponentClass.prototype.drawFocusRect = function () { this.drawRect(-2, -2, this.width + 4, this.height + 4); }; FUIComponentClass.prototype.myOnSetFocus = function () { this.focused = true; Key.addListener(this.keyListener); if (this.tabFocused) { this.drawFocusRect(); } }; FUIComponentClass.prototype.myOnKillFocus = function () { this.tabFocused = true; this.focused = false; this.focusRect.removeMovieClip(); Key.removeListener(this.keyListener); }; FUIComponentClass.prototype.executeCallBack = function () { this.handlerObj[this.changeHandler](this); }; FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) { this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal); }; FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) { if (value == '') { return undefined; } var v16 = parseInt(value); if (!isNaN(v16)) { value = v16; } var v17 = arguments.length > 2 ? isGlobal : false; if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].useGlobal || !v17) { this.styleTable[propName].value = value; if (this.setCustomStyleProperty(propName, value)) { } else { if (propName == 'embedFonts') { this.invalidate('setSize'); } else { if (propName.subString(0, 4) == 'text') { if (this.textStyle == undefined) { this.textStyle = new TextFormat(); } var v18 = propName.subString(4, propName.length); this.textStyle[v18] = value; this.invalidate('setSize'); } else { for (var v15 in this.styleTable[propName].coloredMCs) { var v4 = new Color(this.styleTable[propName].coloredMCs[v15]); if (this.styleTable[propName].value == undefined) { var v5 = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'}; v4.setTransform(v5); continue; } v4.setRGB(value); } } } } this.styleTable[propName].useGlobal = v17; } }; FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) { if (this.styleTable[propName] == undefined) { this.styleTable[propName] = new Object(); this.styleTable[propName].useGlobal = true; } if (this.styleTable[propName].coloredMCs == undefined) { this.styleTable[propName].coloredMCs = new Object(); } this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef; if (this.styleTable[propName].value != undefined) { var v4 = new Color(skinMCRef); v4.setRGB(this.styleTable[propName].value); } }; _global.FStyleFormat = function () { this.nonStyles = {'listeners': true, 'isGlobal': true, 'isAStyle': true, 'addListener': true, 'removeListener': true, 'nonStyles': true, 'applyChanges': true}; this.listeners = new Object(); this.isGlobal = false; if (arguments.length > 0) { for (var v3 in arguments[0]) { this[v3] = arguments[0][v3]; } } }; _global.FStyleFormat.prototype = new Object(); FStyleFormat.prototype.addListener = function () { var v3 = 0; while (v3 < arguments.length) { var v4 = arguments[v3]; this.listeners[arguments[v3]] = v4; for (var v5 in this) { if (this.isAStyle(v5)) { v4.updateStyleProperty(this, v5.toString()); } } ++v3; } }; FStyleFormat.prototype.removeListener = function (component) { this.listeners[component] = undefined; for (var v4 in this) { if (this.isAStyle(v4)) { if (component.styleTable[v4].useGlobal == this.isGlobal) { component.styleTable[v4].useGlobal = true; var v3 = this.isGlobal ? undefined : globalStyleFormat[v4]; component.setStyleProperty(v4, v3, true); } } } }; FStyleFormat.prototype.applyChanges = function () { var v6 = 0; for (var v5 in this.listeners) { var v3 = this.listeners[v5]; if (arguments.length > 0) { var v4 = 0; while (v4 < arguments.length) { if (this.isAStyle(arguments[v4])) { v3.updateStyleProperty(this, arguments[v4]); } ++v4; } continue; } for (v4 in this) { if (this.isAStyle(v4)) { v3.updateStyleProperty(this, v4.toString()); } } } }; FStyleFormat.prototype.isAStyle = function (name) { return this.nonStyles[name] ? false : true; }; #endinitclip frame 1 { } } movieClip 125 { } movieClip 127 { } movieClip 130 lib_point { #initclip Object.registerClass('lib_point', Pirrest.PhisicsEngine.Point); #endinitclip } movieClip 131 lib_surface { #initclip Object.registerClass('lib_surface', Pirrest.PhisicsEngine.Surface); #endinitclip } movieClip 133 lib_circle { #initclip Object.registerClass('lib_circle', Pirrest.PhisicsEngine.CircleSurface); #endinitclip } movieClip 216 { } movieClip 217 finish { } movieClip 220 { } movieClip 221 { } movieClip 222 { } movieClip 223 { } movieClip 224 lib_level_1 { #initclip Object.registerClass('lib_level_1', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 227 { } movieClip 229 { } movieClip 230 { } movieClip 231 lib_level_2 { #initclip Object.registerClass('lib_level_2', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 227 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 236 { } movieClip 237 { } movieClip 238 lib_level_3 { #initclip Object.registerClass('lib_level_3', Pirrest.BigFoot.Level); #endinitclip } movieClip 242 { } movieClip 243 { } movieClip 244 lib_level_4 { #initclip Object.registerClass('lib_level_4', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 248 { } movieClip 249 { } movieClip 250 lib_level_5 { #initclip Object.registerClass('lib_level_5', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 255 { } movieClip 256 { } movieClip 257 lib_level_6 { #initclip Object.registerClass('lib_level_6', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 261 { } movieClip 262 { } movieClip 263 { } movieClip 264 lib_level_7 { #initclip Object.registerClass('lib_level_7', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 268 { } movieClip 269 { } movieClip 270 lib_level_8 { #initclip Object.registerClass('lib_level_8', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 273 { } movieClip 274 { } movieClip 275 { } movieClip 276 { } movieClip 278 { } movieClip 279 { } movieClip 280 lib_level_9 { #initclip Object.registerClass('lib_level_9', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 273 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 274 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 275 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 276 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 284 { } movieClip 285 { } movieClip 286 lib_level_10 { #initclip Object.registerClass('lib_level_10', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 291 { } movieClip 292 { } movieClip 293 lib_level_11 { #initclip Object.registerClass('lib_level_11', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 297 { } movieClip 298 { } movieClip 299 lib_level_12 { #initclip Object.registerClass('lib_level_12', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 303 { } movieClip 304 { } movieClip 305 lib_level_13 { #initclip Object.registerClass('lib_level_13', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 309 { } movieClip 310 { } movieClip 311 lib_level_14 { #initclip Object.registerClass('lib_level_14', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 273 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 274 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 275 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 276 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 315 { } movieClip 317 { } movieClip 318 { } movieClip 319 lib_level_15 { #initclip Object.registerClass('lib_level_15', Pirrest.BigFoot.Level); #endinitclip instance of movieClip 125 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 273 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 315 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 275 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } instance of movieClip 276 { onClipEvent (enterFrame) { if (_parent.jeep_cont_mc.hitTest(this)) { if (_alpha == 100) { _root.puncte += 10; } _alpha = 0; } } } } movieClip 322 lib_jeep_wheel1 { #initclip Object.registerClass('lib_jeep_wheel1', Pirrest.PhisicsEngine.Wheel); #endinitclip } movieClip 325 lib_jeep_wheel2 { #initclip Object.registerClass('lib_jeep_wheel2', Pirrest.PhisicsEngine.Wheel); #endinitclip } movieClip 328 { } movieClip 331 { } movieClip 333 { } movieClip 340 { } movieClip 343 { } movieClip 346 { } movieClip 349 { } movieClip 352 { } movieClip 354 { } movieClip 356 { } movieClip 357 { frame 1 { function move(to) { if (position == to) { return undefined; } if (!is_moving) { movement = to; if (position == 'normal') { gotoAndPlay('move_' + to); } else { gotoAndPlay(position + '_to_normal'); } } else { movement = to; } } position = 'normal'; is_moving = false; stop(); } frame 2 { is_moving = true; } frame 10 { position = 'front'; if (movement == 'front') { movement = ''; is_moving = false; stop(); } } frame 11 { is_moving = true; } frame 21 { position = 'normal'; if (movement == 'normal') { is_moving = false; stop(); } else { gotoAndPlay('move_' + movement); } } frame 22 { is_moving = true; } frame 31 { if (_root.sunet == true) { _root.demaraj.start(0, 1); } position = 'back'; if (movement == 'back') { movement = ''; is_moving = false; stop(); } } frame 32 { is_moving = true; } frame 42 { position = 'normal'; if (movement == 'normal') { is_moving = false; stop(); } else { gotoAndPlay('move_' + movement); } } } movieClip 358 lib_jeep_body { #initclip Object.registerClass('lib_jeep_body', Pirrest.BigFoot.JeepBody); #endinitclip } frame 1 { stop(); } frame 1 { function zadergka() { ++perc2; if (perc2 >= 100) { clearInterval(fSetInterval); } } stop(); preloader.line._xscale = 0; preloader.txt.text = '0%'; this.onEnterFrame = function () { var v6 = this.getBytesLoaded(); var v5 = this.getBytesTotal(); var v4 = int((v6 / v5) * 100); var v3; v3 = perc2 > v4 ? v4 : perc2; preloader.line._xscale = v3; preloader.txt.text = v3 + '%'; if (v5 == v6 && perc2 == 100) { this.onEnterFrame = undefined; preloader._visible = false; _root.gotoAndStop('init'); } }; perc2 = 0; fSetInterval = setInterval(zadergka, 90); } movieClip 365 { } movieClip 368 { } movieClip 370 { } movieClip 372 { } movieClip 373 { } movieClip 376 { } movieClip 378 { } movieClip 380 { } movieClip 384 { } movieClip 386 { } movieClip 387 { } movieClip 388 { } movieClip 390 { } // unknown tag 88 length 63 movieClip 396 { frame 1 { bull.onRelease = function () { getURL('http://sillybull.com', ''); }; } } movieClip 404 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 3 { gotoAndStop(1); } } instance of movieClip 404 { onClipEvent (press) { nextFrame(); gotoAndPlay(undefined); } } movieClip 479 __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 480 __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 481 __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 482 __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 483 __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 484 __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 485 __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 486 __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 487 __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 488 __Packages.Pirrest.PhisicsEngine.Wheel { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Wheel) { var v1 = function () { super(); }; Pirrest.PhisicsEngine.Wheel = v1; Pirrest.PhisicsEngine.Wheel extends MovieClip; var v2 = v1.prototype; v2.init = function ($coord_space, $mass) { if (Pirrest.Common.PiVal.isEmpty($coord_space)) { this._coord_space = this._parent; } else { this._coord_space = $coord_space; } var v2 = {'x': this._x, 'y': this._y}; this._parent.localToGlobal(v2); $coord_space.globalToLocal(v2); this.wr = this._width / 2; this.wp = new Pirrest.PhisicsEngine.Particle(v2.x, v2.y, $mass); this.rp = new Pirrest.PhisicsEngine.RimParticle(this.wr, 2); this.contactRadius = this.wr; this.coeffSlip = 0; this.closestPoint = new Pirrest.PhisicsEngine.Vector(0, 0); }; v2.verlet = function ($sysObj) { this.rp.verlet($sysObj); this.wp.verlet($sysObj); }; v2.checkCollision = function ($surface, $sysObj) { $surface.resolveWheelCollision(this); }; v2.paint = function () { var v2 = this.wp.curr.x; var v3 = this.wp.curr.y; var v5 = this.rp.curr.x; var v7 = this.rp.curr.y; this._x = v2; this._y = v3; var v6 = 57.29578; var v4 = -Math.atan2(v5, v7) * v6; this._rotation = v4; }; v2.resolve = function ($n) { var v2 = -this.rp.curr.y; var v3 = this.rp.curr.x; var v7 = Math.sqrt(v2 * v2 + v3 * v3); v2 /= v7; v3 /= v7; var v8 = v2 * this.rp.speed; var v10 = v3 * this.rp.speed; var v9 = this.wp.curr.x - this.wp.prev.x; var v11 = this.wp.curr.y - this.wp.prev.y; var v12 = v9 + v8; var v13 = v11 + v10; var v6 = -$n.y * v12 + $n.x * v13; this.rp.prev.x = this.rp.curr.x - v6 * v2; this.rp.prev.y = this.rp.curr.y - v6 * v3; var v5 = 1 - this.coeffSlip; this.wp.curr.x += v5 * this.rp.speed * -$n.y; this.wp.curr.y += v5 * this.rp.speed * $n.x; this.rp.speed *= this.coeffSlip; }; ASSetPropFlags(Pirrest.PhisicsEngine.Wheel.prototype, null, 1); } #endinitclip } movieClip 489 __Packages.Pirrest.Common.PiVal { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.Common) { _global.Pirrest.Common = new Object(); } if (!_global.Pirrest.Common.PiVal) { var v1 = function () {}; Pirrest.Common.PiVal = v1; var v2 = v1.prototype; v1.isEmpty = function ($obj) { if ($obj == '' || $obj == undefined) { return true; } else { return false; } }; ASSetPropFlags(Pirrest.Common.PiVal.prototype, null, 1); } #endinitclip } movieClip 490 __Packages.Pirrest.PhisicsEngine.Particle { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Particle) { var v1 = function ($posX, $posY, $mass) { this.init($posX, $posY, $mass); }; Pirrest.PhisicsEngine.Particle = v1; var v2 = v1.prototype; v2.init = function ($posX, $posY, $mass) { this.curr = new Pirrest.PhisicsEngine.Vector($posX, $posY); this.prev = new Pirrest.PhisicsEngine.Vector($posX, $posY); this.temp = new Pirrest.PhisicsEngine.Vector(0, 0); if ($mass == undefined || $mass < 0) { this.mass = 0; } else { this.mass = $mass; } var v3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth(); this.dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip('p_' + v3, v3); }; v2.verlet = function ($sysObj) { this.temp.x = this.curr.x; this.temp.y = this.curr.y; this.curr.x += $sysObj.coeffDamp * (this.curr.x - this.prev.x) + $sysObj.gravity.x; this.curr.y += $sysObj.coeffDamp * (this.curr.y - this.prev.y) + $sysObj.gravity.y + this.mass; this.prev.x = this.temp.x; this.prev.y = this.temp.y; }; v2.checkCollision = function ($surface, $sysObj) { $surface.resolveParticleCollision(this, $sysObj); }; v2.paint = function () { this.dmc.clear(); this.dmc.lineStyle(0, 16777215, 100); Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(this.dmc, this.curr.x, this.curr.y, 2); }; v2.setPos = function ($px, $py) { this.curr.x = $px; this.curr.y = $py; this.prev.x = $px; this.prev.y = $py; }; ASSetPropFlags(Pirrest.PhisicsEngine.Particle.prototype, null, 1); } #endinitclip } movieClip 491 __Packages.Pirrest.PhisicsEngine.Vector { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Vector) { var v1 = function ($x, $y) { this.init($x, $y); }; Pirrest.PhisicsEngine.Vector = v1; var v2 = v1.prototype; v2.init = function ($x, $y) { this.x = $x; this.y = $y; }; v2.dot = function ($v) { return this.x * $v.x + this.y * $v.y; }; v2.cross = function ($v) { return this.x * $v.y - this.y * $v.x; }; v2.plus = function ($v) { this.x += $v.x; this.y += $v.y; return this; }; v2.plusNew = function ($v) { return new Pirrest.PhisicsEngine.Vector(this.x + $v.x, this.y + $v.y); }; v2.minus = function ($v) { this.x -= $v.x; this.y -= $v.y; return this; }; v2.minusNew = function ($v) { return new Pirrest.PhisicsEngine.Vector(this.x - $v.x, this.y - $v.y); }; v2.mult = function ($s) { this.x *= $s; this.y *= $s; return this; }; v2.multNew = function ($s) { return new Pirrest.PhisicsEngine.Vector(this.x * $s, this.y * $s); }; v2.distance = function ($p) { var v2 = this.x - $p.x; var v3 = this.y - $p.y; return Math.sqrt(v2 * v2 + v3 * v3); }; v2.normalize = function () { var v2 = Math.sqrt(this.x * this.x + this.y * this.y); this.x /= v2; this.y /= v2; return this; }; ASSetPropFlags(Pirrest.PhisicsEngine.Vector.prototype, null, 1); } #endinitclip } movieClip 492 __Packages.Pirrest.PhisicsEngine.Graphics { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Graphics) { var v1 = function () {}; Pirrest.PhisicsEngine.Graphics = v1; var v2 = v1.prototype; v2.paintLine = function ($target_mc, $x0, $y0, $x1, $y1) { $target_mc.moveTo($x0, $y0); $target_mc.lineTo($x1, $y1); }; v2.paintCircle = function ($target_mc, $x, $y, $r) { var v5 = 0.4142136 * $r; var v4 = 0.7071068 * $r; $target_mc.moveTo($x + $r, $y); $target_mc.curveTo($r + $x, v5 + $y, v4 + $x, v4 + $y); $target_mc.curveTo(v5 + $x, $r + $y, $x, $r + $y); $target_mc.curveTo(-v5 + $x, $r + $y, -v4 + $x, v4 + $y); $target_mc.curveTo(-$r + $x, v5 + $y, -$r + $x, $y); $target_mc.curveTo(-$r + $x, -v5 + $y, -v4 + $x, -v4 + $y); $target_mc.curveTo(-v5 + $x, -$r + $y, $x, -$r + $y); $target_mc.curveTo(v5 + $x, -$r + $y, v4 + $x, -v4 + $y); $target_mc.curveTo($r + $x, -v5 + $y, $r + $x, $y); }; ASSetPropFlags(Pirrest.PhisicsEngine.Graphics.prototype, null, 1); } #endinitclip } movieClip 493 __Packages.Pirrest.PhisicsEngine.RimParticle { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.RimParticle) { var v1 = function ($r, $mt) { this.init($r, $mt); }; Pirrest.PhisicsEngine.RimParticle = v1; var v2 = v1.prototype; v2.init = function ($r, $mt) { this.curr = new Pirrest.PhisicsEngine.Vector($r, 0); this.prev = new Pirrest.PhisicsEngine.Vector(0, 0); this.vs = 0; this.speed = 0; this.maxTorque = $mt; this.wr = $r; }; v2.verlet = function ($sysObj) { this.speed = Math.max(-this.maxTorque, Math.min(this.maxTorque, this.speed + this.vs)); var v2 = -this.curr.y; var v3 = this.curr.x; var v6 = Math.sqrt(v2 * v2 + v3 * v3); v2 /= v6; v3 /= v6; this.curr.x += this.speed * v2; this.curr.y += this.speed * v3; var v7 = this.prev.x; var v8 = this.prev.y; this.prev.x = this.curr.x; var v10 = this.prev.x; this.prev.y = this.curr.y; var v9 = this.prev.y; this.curr.x += $sysObj.coeffDamp * (v10 - v7); this.curr.y += $sysObj.coeffDamp * (v9 - v8); var v4 = Math.sqrt(this.curr.x * this.curr.x + this.curr.y * this.curr.y); var v5 = (v4 - this.wr) / v4; this.curr.x -= this.curr.x * v5; this.curr.y -= this.curr.y * v5; }; ASSetPropFlags(Pirrest.PhisicsEngine.RimParticle.prototype, null, 1); } #endinitclip } movieClip 494 __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 495 __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 496 __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 497 __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 498 __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 499 __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 500 __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 501 __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 502 __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 503 __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 504 __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; mx.controls.ProgressBar extends mx.core.UIObject; var v2 = v1.prototype; 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 v23 = this.__height; var v6 = this.progBarLeft_mc._width > this.progTrackLeft_mc._width ? this.progBarLeft_mc._width : this.progTrackLeft_mc._width; var v5 = 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 = v23 - v5; } if (this.__label != undefined && this.__label != '') { this.labelPath._visible = false; var v11 = 1; var v22 = 1; var v19 = 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 v3 = this.__label; if (!this.__indeterminate) { v3 = this.replace(v3, '%1', String(Math.floor(v13 / this.__conversion))); v3 = this.replace(v3, '%2', String(Math.floor(v13 / this.__conversion))); v3 = this.replace(v3, '%3', String(100)); 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; v7 = v14 - (this.labelPath.textWidth + v19 + v11); if (v7 < v6 + v15) { v7 = 0; } if (this.__labelPlacement == 'left') { v9 = v14 - v7; } } var v4 = this.__label; if (!this.__indeterminate) { v4 = this.replace(v4, '%1', String(Math.floor(v12 / this.__conversion))); v4 = this.replace(v4, '%2', String(Math.floor(v13 / this.__conversion))); v4 = this.replace(v4, '%3', String(Math.floor(this.__get__percentComplete()))); 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; var v10 = 0; if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right') { v10 = v14 - v7 - v11; } else { v10 = v14 - v11; } if (v10 < this.labelPath.textWidth + v19) { this.labelPath._width = v10; } else { this.labelPath._width = this.labelPath.textWidth + v19; } if (this.__labelPlacement == 'left' || this.__labelPlacement == 'right' || this.__labelPlacement == 'center') { v10 = v23; } else { v10 = v23 - v22 - v5; } 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 = v5 / 2 - this.labelPath.height / 2; } else { if (this.__labelPlacement == 'top') { this.labelPath._y = v8 - v22 - this.labelPath.height; } else { this.labelPath._y = v5 + v22; } } this.labelPath._visible = true; } else { this.labelPath.text = ''; this.labelPath._visible = false; } if (v7 >= v6 + v15) { var v2 = this.progTrackLeft_mc.getBounds(this.progTrackLeft_mc); var v40 = -v2.xMin; var v39 = -v2.yMin; this.progTrackLeft_mc.move(v9 + v6 - this.progTrackLeft_mc._width + v40, v8 + (v5 - this.progTrackLeft_mc._height) / 2 + v39); v2 = this.progTrackMiddle_mc.getBounds(this.progTrackMiddle_mc); var v32 = -v2.xMin; var v30 = -v2.yMin; this.progTrackMiddle_mc.setSize(v7 - v6 - v15, this.progTrackMiddle_mc._height); this.progTrackMiddle_mc.move(v9 + v6 + v32, v8 + (v5 - this.progTrackLeft_mc._height) / 2 + v30); v2 = this.progTrackRight_mc.getBounds(this.progTrackRight_mc); var v33 = -v2.xMin; var v34 = -v2.yMin; this.progTrackRight_mc.move(v9 + v6 + this.progTrackMiddle_mc._width + v33, v8 + (v5 - this.progTrackRight_mc._height) / 2 + v34); var v20 = v7 - v6 - v15; var v16 = v20 * this.__get__percentComplete() / 100; var v17 = 0; if (this.__indeterminate == true) { v16 = v20; this.mask_mc._width = v16; this.mask_mc._height = this.progIndBar_mc._height; this.mask_mc._x = v9 + v6; this.mask_mc._y = v8 + (v5 - 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 v42 = -v2.xMin; var v41 = -v2.yMin; var v21 = v9 + v6 + v42; var v24 = this.progIndBar_mc._width * 50 / 200; var v18 = this.progIndBar_mc._width * 20 / 200; var v25 = 3; var v27 = v24; if (this.__direction == 'left') { v24 = this.progIndBar_mc._width * 30 / 200; v18 = 0; v25 = -3; v27 = v18; } if (v28 <= v21 - v24 || v28 >= v21 - v18) { this.progIndBar_mc._x = v21 - v27 + v25; } else { this.progIndBar_mc._x += v25; } this.progIndBar_mc._y = v8 + (v5 - this.progIndBar_mc._height) / 2 + v41; this.progIndBar_mc._visible = true; this.invalidate(); } else { this.progIndBar_mc._visible = false; if (this.__direction == 'left') { v17 = v20 - v16; } } v2 = this.progBarMiddle_mc.getBounds(this.progBarMiddle_mc); var v38 = -v2.xMin; var v36 = -v2.yMin; this.progBarMiddle_mc.setSize(v16, this.progBarMiddle_mc._height); this.progBarMiddle_mc.move(v17 + v9 + v6 + v38, v8 + (v5 - this.progBarLeft_mc._height) / 2 + v36); v2 = this.progBarLeft_mc.getBounds(this.progBarLeft_mc); var v37 = -v2.xMin; var v35 = -v2.yMin; this.progBarLeft_mc.move(v17 + v9 + v6 - this.progBarLeft_mc._width + v37, v8 + (v5 - this.progBarLeft_mc._height) / 2 + v35); v2 = this.progBarRight_mc.getBounds(this.progBarRight_mc); var v29 = -v2.xMin; var v31 = -v2.yMin; this.progBarRight_mc.move(v17 + v9 + v6 + this.progBarMiddle_mc._width + v29, v8 + (v5 - this.progBarRight_mc._height) / 2 + v31); 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 v2 = str.split(from); var v1 = v2.join(to); return v1; }; 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 v4 = v2.getBytesLoaded(); var v3 = v2.getBytesTotal(); this._setProgress(v4, v3); if (this.__get__percentComplete() >= 100 && this.__value > 0) { clearInterval(this.si); } }; v2.progress = function (pEvent) { var v2 = pEvent.target; var v4 = v2.bytesLoaded; var v3 = v2.bytesTotal; this._setProgress(v4, v3); }; 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.127'; 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 } movieClip 505 __Packages.Pirrest.PhisicsEngine.Point { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Point) { var v1 = function () { super(); }; Pirrest.PhisicsEngine.Point = v1; Pirrest.PhisicsEngine.Point extends MovieClip; var v2 = v1.prototype; v2.init = function ($coord_space) { var v2 = {'x': this._x, 'y': this._y}; if (!Pirrest.Common.PiVal.isEmpty($coord_space)) { this._parent.localToGlobal(v2); $coord_space.globalToLocal(v2); } this.x = v2.x; this.y = v2.y; this.pn = new Pirrest.PhisicsEngine.Vector(0, 0); }; v2.distance = function (that) { return Pirrest.Common.PiGeo.distance(this.x, this.y, that.x, that.y); }; ASSetPropFlags(Pirrest.PhisicsEngine.Point.prototype, null, 1); } #endinitclip } movieClip 506 __Packages.Pirrest.Common.PiGeo { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.Common) { _global.Pirrest.Common = new Object(); } if (!_global.Pirrest.Common.PiGeo) { var v1 = function () {}; Pirrest.Common.PiGeo = v1; var v2 = v1.prototype; v1.distance = function ($x1, $y1, $x2, $y2) { var v1 = $x1 - $x2; var v2 = $y1 - $y2; return Math.sqrt(v1 * v1 + v2 * v2); }; v1.angle = function ($x1, $y1, $x2, $y2) { return Math.atan2($x2 - $x1, $y2 - $y1) * Pirrest.Common.PiGeo.RADIAN; }; v1.RADIAN = 57.29578; v1.DEGREE = 0.01745329; ASSetPropFlags(Pirrest.Common.PiGeo.prototype, null, 1); } #endinitclip } movieClip 507 __Packages.Pirrest.PhisicsEngine.Surface { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Surface) { var v1 = function () { super(); }; Pirrest.PhisicsEngine.Surface = v1; Pirrest.PhisicsEngine.Surface extends MovieClip; var v2 = v1.prototype; v2.init = function ($coord_space) { this.coord_space = $coord_space; this.p1.init($coord_space); this.p2.init($coord_space); this.isOrientH = true; this.normal = new Pirrest.PhisicsEngine.Vector(0, 0); this.calcNormal(); this.rise = this.p2.y - this.p1.y; this.run = this.p2.x - this.p1.x; this.invRun = 1 / this.run; this.slope = this.rise / this.run; this.invB = 1 / (this.run * this.run + this.rise * this.rise); this.coord_space.lineStyle(10, 2237064, 100); }; v2.setIsOrientH = function ($isOrientH) { this.isOrientH = $isOrientH; }; v2.calcNormal = function () { var v3 = this.p2.x - this.p1.x; var v4 = this.p2.y - this.p1.y; this.normal.x = v4; this.normal.y = -v3; var v2 = Math.sqrt(this.normal.x * this.normal.x + this.normal.y * this.normal.y); this.normal.x /= v2; this.normal.y /= v2; }; v2.paint = function () { Pirrest.PhisicsEngine.Graphics.prototype.paintLine(this.coord_space, this.p1.x, this.p1.y, this.p2.x, this.p2.y); }; v2.resolveWheelCollision = function ($w) { if (this.bounds($w.wp.curr, $w.contactRadius)) { this.getClosestPoint($w.wp.curr, $w.closestPoint); var v3 = $w.closestPoint.minusNew($w.wp.curr); v3.normalize(); if (this.inequality($w.wp.curr)) { var v5 = Math.abs(v3.x); v3.x = this.normal.x < 0 ? v5 : -v5; v3.y = Math.abs(v3.y); } var v4 = $w.wp.curr.plusNew(v3.mult($w.wr)); if (this.segmentInequality(v4)) { var v6 = v4.x - $w.closestPoint.x; var v7 = v4.y - $w.closestPoint.y; $w.wp.curr.x -= v6; $w.wp.curr.y -= v7; $w.resolve(this.normal); } } }; v2.resolveParticleCollision = function ($p, $sysObj) { if (this.boundedSegmentInequality($p.curr)) { var v3 = $p.curr.minusNew($p.prev); var v4 = this.normal.dot(v3); if (v4 < 0) { var v5 = v3.minusNew(this.normal.multNew(v4)); var v10 = v5.multNew($sysObj.coeffFric); var v8 = this.normal.multNew(v4 * $sysObj.coeffRest); var v7 = v8.plusNew(v10); var v6 = v3.minusNew(v7); var v9 = this.normal.dot($p.curr.minusNew(this.p1)) * $sysObj.coeffRest; $p.curr.minus(this.normal.multNew(v9)); $p.prev = $p.curr.minusNew(v6); } } }; v2.segmentInequality = function ($toPoint) { var v2 = this.findU($toPoint); var v3 = this.inequality($toPoint); return v2 >= 0 && v2 <= 1 && v3; }; v2.boundedSegmentInequality = function ($toPoint) { var v3; if (this.isOrientH) { v3 = $toPoint.x >= this.p1.x && $toPoint.x <= this.p2.x; } else { if (this.p1.y < this.p2.y) { v3 = $toPoint.y >= this.p1.y && $toPoint.y <= this.p2.y; } else { v3 = $toPoint.y <= this.p1.y && $toPoint.y >= this.p2.y; } } if (v3) { return this.inequality($toPoint); } return false; }; v2.inequality = function ($toPoint) { var v2 = this.slope * ($toPoint.x - this.p1.x) + (this.p1.y - $toPoint.y); return v2 <= 0; }; v2.bounds = function ($toPoint, $r) { return $toPoint.x >= this.p1.x - $r && $toPoint.x <= this.p2.x + $r; }; v2.getClosestPoint = function ($toPoint, $returnVect) { var v2 = this.findU($toPoint); if (v2 <= 0) { return this.p1; } if (v2 >= 1) { return this.p2; } var v3 = this.p1.x + v2 * (this.p2.x - this.p1.x); var v4 = this.p1.y + v2 * (this.p2.y - this.p1.y); $returnVect.x = v3; $returnVect.y = v4; }; v2.findU = function ($p) { var v2 = ($p.x - this.p1.x) * this.run + ($p.y - this.p1.y) * this.rise; return v2 * this.invB; }; ASSetPropFlags(Pirrest.PhisicsEngine.Surface.prototype, null, 1); } #endinitclip } movieClip 508 __Packages.Pirrest.PhisicsEngine.CircleSurface { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.CircleSurface) { var v1 = function () { super(); }; Pirrest.PhisicsEngine.CircleSurface = v1; Pirrest.PhisicsEngine.CircleSurface extends MovieClip; var v2 = v1.prototype; v2.init = function ($coord_space) { var v2 = {'x': this._x, 'y': this._y}; if (!Pirrest.Common.PiVal.isEmpty($coord_space)) { this._parent.localToGlobal(v2); $coord_space.globalToLocal(v2); } this.cx = v2.x; this.cy = v2.y; this.r = this._width / 2; this.lineStyle(0, 2237064, 100); }; v2.paint = function () { Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(this, this.cx, this.cy, this.r); }; v2.resolveWheelCollision = function ($w) { var v2 = this.cx - $w.wp.curr.x; var v4 = this.cy - $w.wp.curr.y; var v6 = Math.sqrt(v2 * v2 + v4 * v4); var v5 = $w.wr + this.r - v6; if (v5 > 0) { v2 /= v6; v4 /= v6; $w.wp.curr.x -= v2 * v5; $w.wp.curr.y -= v4 * v5; var v7 = new Pirrest.PhisicsEngine.Vector(-v2, -v4); $w.resolve(v7); } }; v2.resolveParticleCollision = function ($p) { var v2 = new Pirrest.PhisicsEngine.Vector(this.cx, this.cy); var v5 = v2.distance($p.curr); if (v5 <= this.r) { var v6 = ($p.curr.minusNew(v2)).normalize(); var v4 = v2.plusNew(v6.multNew(this.r)); $p.curr = v4; } }; ASSetPropFlags(Pirrest.PhisicsEngine.CircleSurface.prototype, null, 1); } #endinitclip } movieClip 509 __Packages.Pirrest.BigFoot.Level { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.BigFoot) { _global.Pirrest.BigFoot = new Object(); } if (!_global.Pirrest.BigFoot.Level) { var v1 = function () { super(); }; Pirrest.BigFoot.Level = v1; Pirrest.BigFoot.Level extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.p_system = new Pirrest.PhisicsEngine.ParticleSystem(); this.p_system.setDamping(_global.gl_level.damping); this.p_system.setGravity(_global.gl_level.gravity.x, _global.gl_level.gravity.y); this.p_system.setKfr(_global.gl_level.kfr); this.p_system.setFriction(_global.gl_level.friction); var v7; for (v7 in this.under_mc) { var v3 = this.under_mc[v7]; v3._visible = false; if (v3 instanceof Pirrest.PhisicsEngine.Surface) { v3.init(this.under_mc); this.p_system.addSurface(v3); } if (v3 instanceof Pirrest.PhisicsEngine.CircleSurface) { v3.init(this.under_mc); this.p_system.addCircleSurface(v3); } } this.under_mc.ground_mc._visible = false; this.under_mc.star_mc._visible = true; var v9 = this.under_mc.jeep_dummy_mc.wheel_1_dummy_mc; var v8 = this.under_mc.jeep_dummy_mc.wheel_2_dummy_mc; var v5 = {'x': v9._x, 'y': v9._y}; var v6 = {'x': v8._x, 'y': v8._y}; this.under_mc.jeep_dummy_mc.localToGlobal(v5); this.under_mc.jeep_dummy_mc.localToGlobal(v6); this.globalToLocal(v5); this.globalToLocal(v6); this.jeep_wheel_1_mc = this.jeep_cont_mc.attachMovie('lib_jeep_wheel1', 'wheel_1_mc', this.jeep_cont_mc.getNextHighestDepth()); this.jeep_wheel_1_mc._x = v5.x; this.jeep_wheel_1_mc._y = v5.y; this.jeep_wheel_1_mc.init(this.jeep_cont_mc, 0); this.p_system.addWheel(this.jeep_wheel_1_mc); this.jeep_wheel_2_mc = this.jeep_cont_mc.attachMovie('lib_jeep_wheel2', 'wheel_2_mc', this.jeep_cont_mc.getNextHighestDepth()); this.jeep_wheel_2_mc._x = v6.x; this.jeep_wheel_2_mc._y = v6.y; this.jeep_wheel_2_mc.init(this.jeep_cont_mc, 0); this.p_system.addWheel(this.jeep_wheel_2_mc); this.jeep_body_mc = this.jeep_cont_mc.attachMovie('lib_jeep_body', 'jeep_body_mc', this.jeep_cont_mc.getNextHighestDepth()); var v4 = {}; v4.left = this.jeep_wheel_1_mc._x; v4.right = this.jeep_wheel_2_mc._x; v4.top = this.jeep_wheel_1_mc._y; v4.width = v4.right - v4.left; v4.mid = v4.left + v4.width / 2; this.part = this.p_system.addParticle(v4.mid, v4.top - 40); this.p_system.addConstraint(this.jeep_wheel_1_mc.wp, this.part); this.p_system.addConstraint(this.jeep_wheel_2_mc.wp, this.part); this.p_system.addConstraint(this.jeep_wheel_2_mc.wp, this.jeep_wheel_1_mc.wp); this.over_mc.onEnterFrame = function () { this._x = this._parent.under_mc._x; this._y = this._parent.under_mc._y; }; this.jeep_cont_mc.onEnterFrame = function () { this._x = this._parent.under_mc._x; this._y = this._parent.under_mc._y; }; }; v2.start = function () {}; v2.moveCamera = function () { var v4; var v6 = 250 - this.jeep_body_mc._x; var v7 = 200 - this.jeep_body_mc._y; var v8 = v6 - this._x; var v9 = v7 - this._y; var v5 = Pirrest.Common.PiGeo.distance(v6, v7, this._x, this._y); var v3 = v5 * 0.35; if (v3 > 50) { v3 = 50; } v4 = v3 / v5; this._x += v8 * v4; this._y += v9 * v4; _global.pBar.update(this._x, this.under_mc.star_mc._x - this.under_mc.jeep_dummy_mc._x, this.under_mc.jeep_dummy_mc._x - this.under_mc.jeep_dummy_mc._width / 2); }; ASSetPropFlags(Pirrest.BigFoot.Level.prototype, null, 1); } #endinitclip } movieClip 510 __Packages.Pirrest.PhisicsEngine.ParticleSystem { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.ParticleSystem) { var v1 = function () { this.init(); }; Pirrest.PhisicsEngine.ParticleSystem = v1; var v2 = v1.prototype; v2.init = function () { this._particles_ar = []; this._surfaces_ar = []; this._constraints_ar = []; this._wheels_ar = []; this.gravity = new Pirrest.PhisicsEngine.Vector(0, 1); this.coeffRest = 1.5; this.coeffFric = 0.01; this.coeffDamp = 0.99; }; v2.addParticle = function ($px, $py, $mass) { var v2 = new Pirrest.PhisicsEngine.Particle($px, $py, $mass); this._particles_ar.push(v2); this._p_count = this._particles_ar.length; return v2; }; v2.addWheel = function ($wheel) { this._wheels_ar.push($wheel); this._w_count = this._wheels_ar.length; }; v2.addSurface = function ($s) { this._surfaces_ar.push($s); this._s_count = this._surfaces_ar.length; }; v2.addCircleSurface = function ($s) { this._surfaces_ar.push($s); this._s_count = this._surfaces_ar.length; }; v2.addConstraint = function ($p1, $p2) { var v2 = new Pirrest.PhisicsEngine.Constraint($p1, $p2); this._constraints_ar.push(v2); this._c_count = this._constraints_ar.length; return v2; }; v2.addRectangle = function ($center, $rWidth, $rHeight) { return new Pirrest.PhisicsEngine.Rectangle(this, $center, $rWidth, $rHeight); }; v2.addAngularConstraint = function ($p1, $p2, $p3) { var v2 = new Pirrest.PhisicsEngine.AngularConstraint($p1, $p2, $p3); this._constraints_ar.push(v2); this._c_count = this._constraints_ar.length; return v2; }; v2.setKfr = function ($kfr) { this.coeffRest = 1 + $kfr; }; v2.setFriction = function ($f) { this.coeffFric = $f; }; v2.setDamping = function ($d) { this.coeffDamp = $d; }; v2.setGravity = function ($gx, $gy) { this.gravity.x = $gx; this.gravity.y = $gy; }; v2.verlet = function () { var v2; v2 = 0; while (v2 < this._p_count) { this._particles_ar[v2].verlet(this); ++v2; } v2 = 0; while (v2 < this._w_count) { this._wheels_ar[v2].verlet(this); ++v2; } }; v2.satisfy_constraints_ar = function () { var v2; v2 = 0; while (v2 < this._c_count) { this._constraints_ar[v2].resolve(); ++v2; } }; v2.checkCollisions = function () { var v4; var v2; var v3; v4 = 0; while (v4 < this._s_count) { v2 = 0; while (v2 < this._p_count) { this._particles_ar[v2].checkCollision(this._surfaces_ar[v4], this); ++v2; } v3 = 0; while (v3 < this._w_count) { this._wheels_ar[v3].checkCollision(this._surfaces_ar[v4], this); ++v3; } ++v4; } }; v2.paintSurfaces = function () { var v2 = 0; while (v2 < this._surfaces_ar.length) { this._surfaces_ar[v2].paint(); ++v2; } }; v2.paintParticles = function () { var v2 = 0; while (v2 < this._particles_ar.length) { this._particles_ar[v2].paint(); ++v2; } }; v2.paintConstraints = function () { var v2 = 0; while (v2 < this._constraints_ar.length) { this._constraints_ar[v2].paint(); ++v2; } }; v2.paintWheels = function () { var v2 = 0; while (v2 < this._wheels_ar.length) { this._wheels_ar[v2].paint(); ++v2; } }; v2.timeStep = function () { this.verlet(); this.satisfy_constraints_ar(); this.checkCollisions(); }; ASSetPropFlags(Pirrest.PhisicsEngine.ParticleSystem.prototype, null, 1); } #endinitclip } movieClip 511 __Packages.Pirrest.PhisicsEngine.Constraint { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Constraint) { var v1 = function ($p1, $p2) { this.init($p1, $p2); }; Pirrest.PhisicsEngine.Constraint = v1; var v2 = v1.prototype; v2.init = function ($p1, $p2) { this.p1 = $p1; this.p2 = $p2; this.restLength = $p1.curr.distance($p2.curr); var v3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth(); this.dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip('p_' + v3, v3); }; v2.resolve = function () { var v4 = this.p1.curr.minusNew(this.p2.curr); var v2 = this.p1.curr.distance(this.p2.curr); var v5 = (v2 - this.restLength) / v2; var v3 = v4.mult(v5 * 0.5); this.p1.curr.minus(v3); this.p2.curr.plus(v3); }; v2.setRestLength = function ($r) { this.restLength = $r; }; v2.paint = function () { this.dmc.clear(); this.dmc.lineStyle(0, 10053171, 100); Pirrest.PhisicsEngine.Graphics.prototype.paintLine(this.dmc, this.p1.curr.x, this.p1.curr.y, this.p2.curr.x, this.p2.curr.y); }; ASSetPropFlags(Pirrest.PhisicsEngine.Constraint.prototype, null, 1); } #endinitclip } movieClip 512 __Packages.Pirrest.PhisicsEngine.Rectangle { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Rectangle) { var v1 = function ($pSystem, $center, $rWidth, $rHeight) { this.init($pSystem, $center, $rWidth, $rHeight); }; Pirrest.PhisicsEngine.Rectangle = v1; var v2 = v1.prototype; v2.init = function ($pSystem, $center, $rWidth, $rHeight) { var v4 = $pSystem.addParticle($center.x - $rWidth / 2, $center.y - $rHeight / 2, 0); var v5 = $pSystem.addParticle($center.x + $rWidth / 2, $center.y - $rHeight / 2, 0); var v6 = $pSystem.addParticle($center.x + $rWidth / 2, $center.y + $rHeight / 2, 0); var v7 = $pSystem.addParticle($center.x - $rWidth / 2, $center.y + $rHeight / 2, 0); $pSystem.addConstraint(v4, v5); $pSystem.addConstraint(v5, v6); $pSystem.addConstraint(v6, v7); $pSystem.addConstraint(v7, v4); $pSystem.addConstraint(v4, v6); $pSystem.addConstraint(v5, v7); this.p0 = v4; this.p1 = v5; this.p2 = v6; this.p3 = v7; }; ASSetPropFlags(Pirrest.PhisicsEngine.Rectangle.prototype, null, 1); } #endinitclip } movieClip 513 __Packages.Pirrest.PhisicsEngine.AngularConstraint { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.AngularConstraint) { var v1 = function ($pA, $pB, $pC) { this.init($pA, $pB, $pC); }; Pirrest.PhisicsEngine.AngularConstraint = v1; var v2 = v1.prototype; v2.init = function ($pA, $pB, $pC) { this.pA = $pA.curr; this.pB = $pB.curr; this.pC = $pC.curr; this.lineA = new Pirrest.PhisicsEngine.Line(this.pA, this.pB); this.lineB = new Pirrest.PhisicsEngine.Line(this.pB, this.pC); this.pD = new Pirrest.PhisicsEngine.Vector(this.pB.x + 0, this.pB.y - 1); this.lineC = new Pirrest.PhisicsEngine.Line(this.pB, this.pD); this.targetTheta = this.calcTheta(this.pA, this.pB, this.pC); this.coeffStiff = 4; }; v2.resolve = function () { var v10 = this.getCentroid(); this.lineC.p2.x = this.lineC.p1.x + 0; this.lineC.p2.y = this.lineC.p1.y - 1; var v4 = this.pA.distance(this.pB); var v6 = this.pB.distance(this.pC); var v12 = this.calcTheta(this.pA, this.pB, this.pC); var v11 = this.calcTheta(this.pA, this.pB, this.pD); var v13 = this.calcTheta(this.pC, this.pB, this.pD); var v8 = (this.targetTheta - v12) / 2; var v5 = v11 + v8 * this.coeffStiff; var v9 = v13 - v8 * this.coeffStiff; this.pA.x = v4 * Math.sin(v5) + this.pB.x; this.pA.y = v4 * Math.cos(v5) + this.pB.y; this.pC.x = v6 * Math.sin(v9) + this.pB.x; this.pC.y = v6 * Math.cos(v9) + this.pB.y; var v7 = this.getCentroid(); var v2 = v7.x - v10.x; var v3 = v7.y - v10.y; this.pA.x -= v2; this.pA.y -= v3; this.pB.x -= v2; this.pB.y -= v3; this.pC.x -= v2; this.pC.y -= v3; }; v2.calcTheta = function ($pA, $pB, $pC) { var v3 = new Pirrest.PhisicsEngine.Vector($pB.x - $pA.x, $pB.y - $pA.y); var v2 = new Pirrest.PhisicsEngine.Vector($pC.x - $pB.x, $pC.y - $pB.y); var v5 = v3.dot(v2); var v4 = v3.cross(v2); return Math.atan2(v4, v5); }; v2.__set__theta = function ($t) { this.targetTheta = $t; null; null; null; return this.__get__theta(); }; v2.__get__theta = function () { return this.targetTheta; }; v2.paint = function () {}; v2.getCentroid = function () { var v2 = (this.pA.x + this.pB.x + this.pC.x) / 3; var v3 = (this.pA.y + this.pB.y + this.pC.y) / 3; return new Pirrest.PhisicsEngine.Vector(v2, v3); }; v2.addProperty('theta', v2.__get__theta, v2.__set__theta); ASSetPropFlags(Pirrest.PhisicsEngine.AngularConstraint.prototype, null, 1); } #endinitclip } movieClip 514 __Packages.Pirrest.PhisicsEngine.Line { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.PhisicsEngine) { _global.Pirrest.PhisicsEngine = new Object(); } if (!_global.Pirrest.PhisicsEngine.Line) { var v1 = function ($p1, $p2) { this.p1 = $p1; this.p2 = $p2; }; Pirrest.PhisicsEngine.Line = v1; var v2 = v1.prototype; ASSetPropFlags(Pirrest.PhisicsEngine.Line.prototype, null, 1); } #endinitclip } movieClip 515 __Packages.Pirrest.BigFoot.JeepBody { #initclip if (!_global.Pirrest) { _global.Pirrest = new Object(); } if (!_global.Pirrest.BigFoot) { _global.Pirrest.BigFoot = new Object(); } if (!_global.Pirrest.BigFoot.JeepBody) { var v1 = function () { super(); this.damage = 0; this.max_damage = 200; this.init(); }; Pirrest.BigFoot.JeepBody = v1; Pirrest.BigFoot.JeepBody extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.createEmptyMovieClip('sync_mc', 5); this.onEnterFrame = this.syncOnEnterFrame; this.active = false; this.level = this._parent._parent; }; v2.linstenKeys = function () { var v4 = 2; var v3 = 1.4; if (Key.isDown(37)) { this.driver_mc.move('back'); this.level.jeep_wheel_1_mc.wp.mass = v3; this.level.jeep_wheel_2_mc.wp.mass = -v3; } else { if (Key.isDown(39)) { this.driver_mc.move('front'); this.level.jeep_wheel_1_mc.wp.mass = -v3 / 2; this.level.jeep_wheel_2_mc.wp.mass = v3 / 1.5; } else { this.driver_mc.move('normal'); this.level.jeep_wheel_1_mc.wp.mass = 0; this.level.jeep_wheel_2_mc.wp.mass = 0; } } if (Key.isDown(38)) { if (_root.sunet == true) { if (_root.odata == true) { _root.demaraj.start(0, 1); } } _root.odata = false; this.level.jeep_wheel_1_mc.rp.vs = v4; this.level.jeep_wheel_2_mc.rp.vs = v4 / 8; } else { if (Key.isDown(40)) { this.level.jeep_wheel_1_mc.rp.vs = -v4 / 2; this.level.jeep_wheel_2_mc.rp.vs = 0; } else { _root.odata = true; this.level.jeep_wheel_1_mc.rp.vs = 0; this.level.jeep_wheel_2_mc.rp.vs = 0; } } }; v2.syncOnEnterFrame = function () { if (_global.gl_game_info.is_game_over || _global.gl_game_info.is_pause) { return undefined; } var v5 = this.swapped ? {'x': this.level.jeep_wheel_2_mc._x, 'y': this.level.jeep_wheel_2_mc._y} : {'x': this.level.jeep_wheel_1_mc._x, 'y': this.level.jeep_wheel_1_mc._y}; var v4 = this.swapped ? {'x': this.level.jeep_wheel_1_mc._x, 'y': this.level.jeep_wheel_1_mc._y} : {'x': this.level.jeep_wheel_2_mc._x, 'y': this.level.jeep_wheel_2_mc._y}; this.level.jeep_cont_mc.localToGlobal(v5); this.globalToLocal(v5); this.level.jeep_cont_mc.localToGlobal(v4); this.globalToLocal(v4); this.stick_back_mc._x = v5.x; this.stick_back_mc._y = v5.y; this.stick_front_mc._x = v4.x; this.stick_front_mc._y = v4.y; var v10 = -Pirrest.Common.PiGeo.angle(v5.x, v5.y, this.stick_back_point_mc._x, this.stick_back_point_mc._y) + 90; this.stick_back_mc._rotation = v10; var v9 = -Pirrest.Common.PiGeo.angle(v4.x, v4.y, this.stick_front_point_mc._x, this.stick_front_point_mc._y) + 90; this.stick_front_mc._rotation = v9; this.level.moveCamera(); this.linstenKeys(); this.level.p_system.timeStep(); this.level.p_system.paintWheels(); var v11 = -Pirrest.Common.PiGeo.angle(this.level.jeep_wheel_1_mc._x, this.level.jeep_wheel_1_mc._y, this.level.jeep_wheel_2_mc._x, this.level.jeep_wheel_2_mc._y) + 90; this._rotation = v11; this._y = this.level.part.curr.y; this._x = this.level.part.curr.x; var v7 = {'x': this.driver_mc.head_mc._x, 'y': this.driver_mc.head_mc._y}; this.driver_mc.localToGlobal(v7); if (this.level.under_mc.ground_mc.hitTest(v7.x, v7.y, true)) { _global.gl_game_info.is_game_over = true; _root.main_mc.messages_mc.gotoAndStop('game_over'); } var v8 = {'x': this.driver_mc.foot_mc._x, 'y': this.driver_mc.foot_mc._y}; this.driver_mc.localToGlobal(v8); if (this.level.under_mc.ground_mc.hitTest(v8.x, v8.y, true)) { _global.gl_game_info.is_game_over = true; _root.main_mc.messages_mc.gotoAndStop('game_over'); } var v6 = {'x': this.level.under_mc.star_mc._x, 'y': this.level.under_mc.star_mc._y}; this.level.under_mc.localToGlobal(v6); if (this.level.jeep_cont_mc.hitTest(v6.x, v6.y, true)) { _global.gl_game_info.is_game_over = true; ++_global.gl_user_info.curr_level; _global.gl_level = _global.gl_user_info.levels['level_' + _global.gl_user_info.curr_level]; if (Pirrest.Common.PiVal.isEmpty(_global.gl_level)) { _root.main_mc.messages_mc.gotoAndStop('game_completed'); _global.gl_user_info.curr_level = 1; } else { _root.main_mc.messages_mc.gotoAndStop('level_completed'); } } }; ASSetPropFlags(Pirrest.BigFoot.JeepBody.prototype, null, 1); } #endinitclip } movieClip 516 __Packages.classes.Pirrest.BigFoot.Bar { #initclip if (!_global.classes) { _global.classes = new Object(); } if (!_global.classes.Pirrest) { _global.classes.Pirrest = new Object(); } if (!_global.classes.Pirrest.BigFoot) { _global.classes.Pirrest.BigFoot = new Object(); } if (!_global.classes.Pirrest.BigFoot.Bar) { var v1 = function () {}; classes.Pirrest.BigFoot.Bar = v1; var v2 = v1.prototype; v2.update = function ($x, $w, l) { var v2 = ((Stage.width / 2 - $x - l) / $w) * 100; var v3 = (this.body._width - this.cursor._width) / 100; trace(Math.round(v2)); this.cursor._x = v3 * v2; }; ASSetPropFlags(classes.Pirrest.BigFoot.Bar.prototype, null, 1); } #endinitclip } frame 7 { puncte = 0; punctaj = 0; stop(); } frame 16 { function startGame() { _global.gl_level = gl_user_info.levels['level_' + gl_user_info.curr_level]; gl_game_info.is_pause = false; gl_game_info.is_game_over = gl_game_info.is_pause; main_mc.back_mc.gotoAndStop('level_' + gl_user_info.curr_level); main_mc.messages_mc.gotoAndStop('empty'); _root.onKeyDown = function () { if (Key.getCode() == 80) { gl_game_info.is_pause = !gl_game_info.is_pause; if (gl_game_info.is_pause) { main_mc.messages_mc.gotoAndPlay('pause'); _root.pauza = true; } else { main_mc.messages_mc.gotoAndPlay('un_pause'); _root.pauza = false; } } if (_global.gl_user_info.curr_level > 15) { _global.gl_user_info.curr_level = 1; } }; Key.addListener(_root); if (!Pirrest.Common.PiVal.isEmpty(gl_level)) { main_mc.main_cont_mc.attachMovie(gl_level.link, 'level_mc', 1); } } jb = new Pirrest.BigFoot.JeepBody(); Key.addListener(jb); player = {'link': 'lib_jeep'}; level_1 = {'link': 'lib_level_1', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_2 = {'link': 'lib_level_2', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_3 = {'link': 'lib_level_3', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_4 = {'link': 'lib_level_4', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_5 = {'link': 'lib_level_5', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_6 = {'link': 'lib_level_6', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_7 = {'link': 'lib_level_7', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_8 = {'link': 'lib_level_8', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_9 = {'link': 'lib_level_9', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_10 = {'link': 'lib_level_10', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_11 = {'link': 'lib_level_11', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_12 = {'link': 'lib_level_12', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_13 = {'link': 'lib_level_13', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_14 = {'link': 'lib_level_14', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; level_15 = {'link': 'lib_level_15', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8}; levels = {'level_1': level_1, 'level_2': level_2, 'level_3': level_3, 'level_4': level_4, 'level_5': level_5, 'level_6': level_6, 'level_7': level_7, 'level_8': level_8, 'level_9': level_9, 'level_10': level_10, 'level_11': level_11, 'level_12': level_12, 'level_13': level_13, 'level_14': level_14, 'level_15': level_15}; _global.gl_user_info = {'levels': levels, 'player': player, 'curr_level': 1}; _global.gl_game_info = {'is_game_over': false, 'is_pause': false}; delete player; delete level_1; delete level_2; delete level_3; delete level_4; delete level_5; delete level_6; delete level_7; delete level_8; delete level_9; delete level_10; delete level_11; delete level_12; delete level_13; delete level_14; delete level_15; delete levels; main_mc.gotoAndStop('intro'); _root.demaraj = new Sound(); _root.demaraj.attachSound('demaraj'); _root.xmotor = new Sound(); _root.xmotor.attachSound('xmotor'); _root.sunet = true; } // unknown tag 88 length 92 // unknown tag 88 length 88 movieClip 412 { } movieClip 413 { } movieClip 414 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 416 { } movieClip 417 { } movieClip 418 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 420 { } movieClip 421 { } movieClip 422 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 424 { } movieClip 425 { } movieClip 426 { frame 1 { stop(); } instance of movieClip 425 { onClipEvent (rollOver) { _parent.gotoAndPlay(2); } onClipEvent (rollOut) { _parent.gotoAndPlay(6); } onClipEvent (press) { _root.gotoAndStop(32); } } frame 5 { stop(); } } movieClip 428 { } movieClip 432 { frame 31 { if (_root.pauza == false) { ++_root.secunde; if (_root.secunde < 10) { _root.secunde = '0' + _root.secunde; } else { if (_root.secunde > 20) { _root.secunde = '00'; ++_root.minute; if (_root.minute < 10) { _root.minute = '0' + _root.minute; } } } } } } movieClip 441 { } movieClip 442 { } movieClip 443 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 445 { } movieClip 446 { } movieClip 447 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 451 { } movieClip 452 { } movieClip 453 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 454 { frame 1 { trace('empty'); if (_root.sunet == true) { _root.xmotor.start(0, 99999); } _root.pauza = false; } frame 8 { _root.pauza = true; _root.main_mc.messages_mc.theMeniu._x += 1000; pause_mc.caption = 'PAUSE'; next_btn.onRelease = function () { _root.main_mc.gotoAndPlay('replay'); }; menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; } frame 13 { stop(); } frame 14 { _root.pauza = false; } frame 21 { gotoAndStop('empty'); } frame 23 { _root.pauza = true; trace(1000 - (Number(_root.minute) * 100 + Number(_root.secunde))); _root.scorNivel = 1000 - (Number(_root.minute) * 100 + Number(_root.secunde)); _root.totalScor += _root.scorNivel; _root.scorNivel = 0; _root.minute = '00'; _root.secunde = '00'; menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; title_mc.caption = 'LEVEL COMPLETED!'; } instance of movieClip 443 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (release) { _root.main_mc.gotoAndStop('intro'); } } instance of movieClip 447 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (release) { _root.punctaj += _root.puncte; _root.puncte = 0; _root.main_mc.gotoAndPlay('replay'); } } frame 32 { stop(); } frame 34 { _root.pauza = true; _root.scorNivel = 1000 - (Number(_root.minute) * 100 + Number(_root.secunde)); _root.totalScor += _root.scorNivel; _root.scorNivel = 0; _root.minute = '00'; _root.secunde = '00'; menu_btn.onRelease = function () {}; title_mc.caption = 'GAME COMPLETED!'; stopAllSounds(); } frame 43 { stop(); } frame 45 { _root.pauza = true; _root.scorNivel = 0; _root.minute = '00'; _root.secunde = '00'; next_btn.onRelease = function () {}; menu_btn.onRelease = function () {}; title_mc.caption = 'GAME OVER'; } instance of movieClip 414 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (press) { _root.gotoAndStop(31); } } instance of movieClip 453 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (release) { _root.puncte = 0; _root.main_mc.gotoAndPlay('replay'); } } frame 54 { stop(); } } movieClip 455 { } movieClip 457 { } movieClip 458 ms_progressBar { #initclip Object.registerClass('ms_progressBar', classes.Pirrest.BigFoot.Bar); #endinitclip } movieClip 459 { frame 1 { _root.totalScor = 0; } frame 9 { stop(); } frame 10 { _root.main_mc.instructions._visible = false; start_btn.onRelease = function () {}; _root.secunde = '00'; _root.minute = '00'; _root.totalScor = 0; _global.gl_user_info.curr_level = 1; _root.pauza = false; _root.sunet = true; } instance of movieClip 414 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (press) { _root.gotoAndStop(31); } } instance of movieClip 418 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (press) { _root.punctaj = 0; _root.puncte = 0; _parent.gotoAndStop('game'); _root.xmotor.start(0, 99999); } } instance of movieClip 422 { onClipEvent (rollOver) { gotoAndPlay(2); } onClipEvent (rollOut) { gotoAndPlay(6); } onClipEvent (press) { getURL('http://sillybull.com', 'new'); } } frame 14 { stop(); } frame 17 { _root.startGame(); nextFrame(); _global.pBar = this.pBar; } instance messages_mc of movieClip 454 { onClipEvent (enterFrame) { puncte.text = _root.puncte + _root.punctaj; } } frame 18 { _root.main_mc.main_cont_mc.level_mc.init(); } frame 27 { stop(); } } frame 26 { prevFrame(); } frame 27 { removeMovieClip(_root.xxc1); removeMovieClip(_root.xxc2); removeMovieClip(_root.xxc3); removeMovieClip(_root.xxc4); } frame 28 { _root.menu.removeMovieClip(); _root.gameid = 'TrialBike2'; _root.best = _root.totalScor; _root.totalScor = 0; _root.updated = 0; _root.done = 0; done = 0; i = 1; while (i <= 100) { _root['score' + i] = null; _root['name' + i] = null; _root['escore' + i] = null; _root['ename' + i] = null; ++i; } } movieClip 465 { frame 25 { stop(); } } movieClip 469 { } movieClip 470 { } movieClip 471 { frame 15 { stop(); } } movieClip 472 { frame 25 { stop(); } instance of movieClip 471 { onClipEvent (press) { _root.gotoAndStop(16); } } } movieClip 475 { } movieClip 476 { } movieClip 477 { frame 1 { ac11.useHandCursor = 0; stop(); } instance ac11 of movieClip 475 { onClipEvent (press) { _parent.gotoAndStop(2); } } frame 2 { stop(); } } movieClip 478 { frame 25 { stop(); } instance of movieClip 471 { onClipEvent (press) { _root.gotoAndStop(16); } } }




http://swfchan.com/5/23969/info.shtml
Created: 25/5 -2019 17:27:06 Last modified: 25/5 -2019 17:27:06 Server time: 11/05 -2024 14:28:27