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

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

Dirt Bike adventure.swf

This is the info page for
Flash #244532

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 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 v4 = this.styleTable.focusRectInner.value; var v5 = this.styleTable.focusRectOuter.value; if (v4 == undefined) { v4 = 16777215; } if (v5 == undefined) { v5 = 0; } this.createEmptyMovieClip('focusRect', 1000); this.focusRect.controller = this; this.focusRect.lineStyle(1, v5); 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, v4); 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 v17 = parseInt(value); if (!isNaN(v17)) { value = v17; } var v16 = 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 || !v16) { 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); } else { v4.setRGB(value); } } } } } this.styleTable[propName].useGlobal = v16; } }; 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; } } else { for (var 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 4 { } movieClip 6 { } movieClip 8 { } movieClip 10 { } movieClip 12 { } movieClip 14 { } movieClip 15 { 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 16 { } movieClip 17 { } movieClip 18 { } movieClip 20 { } movieClip 21 { } movieClip 23 { } movieClip 24 { 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 25 { } movieClip 26 { } movieClip 27 { } movieClip 28 { } movieClip 30 { } movieClip 32 { } movieClip 33 { 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 34 UpArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 36 { } movieClip 37 { } movieClip 38 { } movieClip 39 { } movieClip 40 { 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 42 { } movieClip 44 { } movieClip 46 { } movieClip 47 { } movieClip 48 { } movieClip 49 { 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 50 { } movieClip 52 { } movieClip 53 { } movieClip 54 { 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 55 ScrollThumb { frame 1 { stop(); } } movieClip 56 { } movieClip 58 { } movieClip 59 { } movieClip 60 { } movieClip 61 { } movieClip 62 { } movieClip 63 { 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 64 { } movieClip 65 { } movieClip 66 { } movieClip 67 { } movieClip 68 { } movieClip 70 { } movieClip 71 { 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 72 { } movieClip 73 { } movieClip 74 { } movieClip 75 { } movieClip 76 { } movieClip 78 { } movieClip 79 { 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 80 DownArrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 81 { } movieClip 82 { frame 1 { var component = _parent; component.registerSkinElement(track_mc, 'scrollTrack'); } } movieClip 83 FScrollBarSymbol { #initclip FScrollBarClass = function () { if (this._height == 4) { return undefined; } this.init(); this.largeScroll = 0; this.pageSize = 0; this.maxPos = 0; this.minPos = 0; this.smallScroll = 1; this.width = this.horizontal ? this._width : this._height; this._yscale = 100; this._xscale = 100; this.setScrollPosition(0); this.tabEnabled = false; if (this._targetInstanceName.length > 0) { this.setScrollTarget(this._parent[this._targetInstanceName]); } this.tabChildren = false; this.setSize(this.width); }; FScrollBarClass.prototype = new FUIComponentClass(); FScrollBarClass.prototype.setHorizontal = function (flag) { if (this.horizontal && !flag) { this._xscale = 100; this._rotation = 0; } else { if (flag && !this.horizontal) { this._xscale = -100; this._rotation = -90; } } this.horizontal = flag; }; FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) { if (!this.enable) { return undefined; } this.pageSize = pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this.scrollPosition = Math.max(this.minPos, this.scrollPosition); this.scrollPosition = Math.min(this.maxPos, this.scrollPosition); if (this.maxPos - this.minPos <= 0) { this.scrollThumb_mc.removeMovieClip(); this.upArrow_mc.gotoAndStop(3); this.downArrow_mc.gotoAndStop(3); this.downArrow_mc.onDragOut = null; this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut; this.downArrow_mc.onPress = this.downArrow_mc.onDragOut; this.upArrow_mc.onDragOut = null; this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut; this.upArrow_mc.onPress = this.upArrow_mc.onDragOut; this.scrollTrack_mc.onRelease = null; this.scrollTrack_mc.onPress = this.scrollTrack_mc.onRelease; this.scrollTrack_mc.onRollOut = null; this.scrollTrack_mc.onDragOut = this.scrollTrack_mc.onRollOut; this.scrollTrack_mc.useHandCursor = false; } else { var v2 = this.getScrollPosition(); this.upArrow_mc.gotoAndStop(1); this.downArrow_mc.gotoAndStop(1); this.upArrow_mc.onDragOver = this.startUpScroller; this.upArrow_mc.onPress = this.upArrow_mc.onDragOver; this.upArrow_mc.onDragOut = this.stopScrolling; this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut; this.downArrow_mc.onDragOver = this.startDownScroller; this.downArrow_mc.onPress = this.downArrow_mc.onDragOver; this.downArrow_mc.onDragOut = this.stopScrolling; this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut; this.scrollTrack_mc.onDragOver = this.startTrackScroller; this.scrollTrack_mc.onPress = this.scrollTrack_mc.onDragOver; this.scrollTrack_mc.onRelease = this.stopScrolling; this.scrollTrack_mc.onDragOut = this.stopScrolling; this.scrollTrack_mc.onRollOut = this.stopScrolling; this.scrollTrack_mc.useHandCursor = false; this.attachMovie('ScrollThumb', 'scrollThumb_mc', 3); this.scrollThumb_mc._x = 0; this.scrollThumb_mc._y = this.upArrow_mc._height; this.scrollThumb_mc.onPress = this.startDragThumb; this.scrollThumb_mc.controller = this; this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb; this.scrollThumb_mc.onRelease = this.scrollThumb_mc.onReleaseOutside; this.scrollThumb_mc.useHandCursor = false; this.thumbHeight = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * this.trackSize; this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid; this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop; this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot; this.thumbHeight = Math.max(this.thumbHeight, 6); this.midHeight = this.thumbHeight - this.thumbTop_mc._height - this.thumbBot_mc._height; this.thumbMid_mc._yScale = this.midHeight * 100 / this.thumbMid_mc._height; this.thumbMid_mc._y = this.thumbTop_mc._height; this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight; this.scrollTop = this.scrollThumb_mc._y; this.trackHeight = this.trackSize - this.thumbHeight; this.scrollBot = this.trackHeight + this.scrollTop; v2 = Math.min(v2, this.maxPos); this.setScrollPosition(Math.max(v2, this.minPos)); } }; FScrollBarClass.prototype.getScrollPosition = function () { return this.scrollPosition; }; FScrollBarClass.prototype.setScrollPosition = function (pos) { this.scrollPosition = pos; if (this.scrollThumb_mc != undefined) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); } this.scrollThumb_mc._y = (pos - this.minPos) * this.trackHeight / (this.maxPos - this.minPos) + this.scrollTop; this.executeCallBack(); }; FScrollBarClass.prototype.setLargeScroll = function (lScroll) { this.largeScroll = lScroll; }; FScrollBarClass.prototype.setSmallScroll = function (sScroll) { this.smallScroll = sScroll; }; FScrollBarClass.prototype.setEnabled = function (enabledFlag) { var v3 = this.enable; if (enabledFlag && !v3) { this.enable = enabledFlag; if (this.textField != undefined) { this.setScrollTarget(this.textField); } else { this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos); this.setScrollPosition(this.cachedPos); } this.clickFilter = undefined; } else { if (!enabledFlag && v3) { this.textField.removeListener(this); this.cachedPos = this.getScrollPosition(); this.cachedMinPos = this.minPos; this.cachedMaxPos = this.maxPos; if (this.clickFilter == undefined) { this.setScrollProperties(this.pageSize, 0, 0); } else { this.clickFilter = true; } this.enable = enabledFlag; } } }; FScrollBarClass.prototype.setSize = function (hgt) { if (this._height == 1) { return undefined; } this.width = hgt; this.scrollTrack_mc._yscale = 100; this.scrollTrack_mc._yscale = 100 * this.width / this.scrollTrack_mc._height; if (this.upArrow_mc == undefined) { this.attachMovie('UpArrow', 'upArrow_mc', 1); this.attachMovie('DownArrow', 'downArrow_mc', 2); this.upArrow_mc.controller = this; this.downArrow_mc.controller = this.upArrow_mc.controller; this.downArrow_mc.useHandCursor = false; this.upArrow_mc.useHandCursor = this.downArrow_mc.useHandCursor; this.upArrow_mc._y = 0; this.upArrow_mc._x = 0; this.downArrow_mc._x = 0; } this.scrollTrack_mc.controller = this; this.downArrow_mc._y = this.width - this.downArrow_mc._height; this.trackSize = this.width - 2 * this.downArrow_mc._height; if (this.textField != undefined) { this.onTextChanged(); } else { this.setScrollProperties(this.pageSize, this.minPos, this.maxPos); } }; FScrollBarClass.prototype.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'one') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this.getScrollPosition() + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } this.setScrollPosition(v2); }; FScrollBarClass.prototype.startDragThumb = function () { this.lastY = this._ymouse; this.onMouseMove = this.controller.dragThumb; }; FScrollBarClass.prototype.dragThumb = function () { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.controller.scrollTop) { this.scrollMove = this.controller.scrollTop; } else { if (this.scrollMove > this.controller.scrollBot) { this.scrollMove = this.controller.scrollBot; } } this._y = this.scrollMove; var v2 = this.controller; v2.scrollPosition = Math.round((v2.maxPos - v2.minPos) * (this._y - v2.scrollTop) / v2.trackHeight) + v2.minPos; this.controller.isScrolling = true; updateAfterEvent(); this.controller.executeCallBack(); }; FScrollBarClass.prototype.stopDragThumb = function () { this.controller.isScrolling = false; this.onMouseMove = null; }; FScrollBarClass.prototype.startTrackScroller = function () { this.controller.trackScroller(); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'page', -1); }; FScrollBarClass.prototype.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', 35, inc, mode); }; FScrollBarClass.prototype.trackScroller = function () { if (this.scrollThumb_mc._y + this.thumbHeight < this._ymouse) { this.scrollIt('page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('page', -1); } } }; FScrollBarClass.prototype.stopScrolling = function () { this.controller.downArrow_mc.gotoAndStop(1); this.controller.upArrow_mc.gotoAndStop(1); clearInterval(this.controller.scrolling); }; FScrollBarClass.prototype.startUpScroller = function () { this.controller.upArrow_mc.gotoAndStop(2); this.controller.scrollIt('one', -1); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', -1); }; FScrollBarClass.prototype.startDownScroller = function () { this.controller.downArrow_mc.gotoAndStop(2); this.controller.scrollIt('one', 1); this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', 1); }; FScrollBarClass.prototype.setScrollTarget = function (tF) { if (tF == undefined) { this.textField.removeListener(this); delete this.textField[this.horizontal ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } this.textField = undefined; if (!(tF instanceof TextField)) { return undefined; } this.textField = tF; this.textField[this.horizontal ? 'hScroller' : 'vScroller'] = this; this.onTextChanged(); this.onChanged = function () { this.onTextChanged(); }; this.onScroller = function () { if (!this.isScrolling) { if (!this.horizontal) { this.setScrollPosition(this.textField.scroll); } else { this.setScrollPosition(this.textField.hscroll); } } }; this.textField.addListener(this); this.textField.watch('text', this.callback); this.textField.watch('htmlText', this.callback); }; FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) { clearInterval(this.hScroller.synchScroll); clearInterval(this.vScroller.synchScroll); this.hScroller.synchScroll = setInterval(this.hScroller, 'onTextChanged', 50); this.vScroller.synchScroll = setInterval(this.vScroller, 'onTextChanged', 50); return newVal; }; FScrollBarClass.prototype.onTextChanged = function () { if (!this.enable || this.textField == undefined) { return undefined; } clearInterval(this.synchScroll); if (this.horizontal) { var v3 = this.textField.hscroll; this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll); this.setScrollPosition(Math.min(v3, this.textField.maxhscroll)); } else { var v3 = this.textField.scroll; var v2 = this.textField.bottomScroll - this.textField.scroll; this.setScrollProperties(v2, 1, this.textField.maxscroll); this.setScrollPosition(Math.min(v3, this.textField.maxscroll)); } }; FScrollBarClass.prototype.executeCallBack = function () { if (this.textField == undefined) { super.executeCallBack(); } else { if (this.horizontal) { this.textField.hscroll = this.getScrollPosition(); } else { this.textField.scroll = this.getScrollPosition(); } } }; Object.registerClass('FScrollBarSymbol', FScrollBarClass); #endinitclip frame 1 { } } movieClip 85 finish { } frame 1 { b1 = _root.getBytesLoaded(); b2 = _root.getBytesTotal(); tgPrel = 1 + Math.round(b1 * 100 / b2); prel.gotoAndStop(tgPrel); if (b1 >= b2) { gotoAndPlay('intro'); } } button 87 { on (release) { getURL('http://www.freeonlinegames.com/?DirtBike', '_blank'); } } movieClip 91 { frame 1 { stop(); } } movieClip 774 __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 v7 = this.wp.curr.x; var v6 = this.wp.curr.y; var v4 = this.rp.curr.x; var v2 = this.rp.curr.y; this._x = v7; this._y = v6; var v3 = 57.29578; var v5 = -Math.atan2(v4, v2) * v3; this._rotation = v5; }; v2.resolve = function ($n) { var v3 = -this.rp.curr.y; var v2 = this.rp.curr.x; var v4 = Math.sqrt(v3 * v3 + v2 * v2); v3 /= v4; v2 /= v4; var v13 = v3 * this.rp.speed; var v11 = v2 * this.rp.speed; var v12 = this.wp.curr.x - this.wp.prev.x; var v10 = this.wp.curr.y - this.wp.prev.y; var v9 = v12 + v13; var v8 = v10 + v11; var v6 = -$n.y * v9 + $n.x * v8; this.rp.prev.x = this.rp.curr.x - v6 * v3; this.rp.prev.y = this.rp.curr.y - v6 * v2; var v7 = 1 - this.coeffSlip; this.wp.curr.x += v7 * this.rp.speed * -$n.y; this.wp.curr.y += v7 * this.rp.speed * $n.x; this.rp.speed *= this.coeffSlip; }; ASSetPropFlags(Pirrest.PhisicsEngine.Wheel.prototype, null, 1); } #endinitclip } movieClip 775 __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 776 __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 v3 = this.x - $p.x; var v2 = this.y - $p.y; return Math.sqrt(v3 * v3 + v2 * v2); }; 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 777 __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 v3; var v2; v4 = 0; while (v4 < this._s_count) { v3 = 0; while (v3 < this._p_count) { this._particles_ar[v3].checkCollision(this._surfaces_ar[v4], this); ++v3; } v2 = 0; while (v2 < this._w_count) { this._wheels_ar[v2].checkCollision(this._surfaces_ar[v4], this); ++v2; } ++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 778 __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 v4 = this.p2.x - this.p1.x; var v3 = this.p2.y - this.p1.y; this.normal.x = v3; this.normal.y = -v4; 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 v7 = v4.x - $w.closestPoint.x; var v6 = v4.y - $w.closestPoint.y; $w.wp.curr.x -= v7; $w.wp.curr.y -= v6; $w.resolve(this.normal); } } }; v2.resolveParticleCollision = function ($p, $sysObj) { if (this.boundedSegmentInequality($p.curr)) { var v4 = $p.curr.minusNew($p.prev); var v3 = this.normal.dot(v4); if (v3 < 0) { var v10 = v4.minusNew(this.normal.multNew(v3)); var v5 = v10.multNew($sysObj.coeffFric); var v7 = this.normal.multNew(v3 * $sysObj.coeffRest); var v8 = v7.plusNew(v5); var v9 = v4.minusNew(v8); var v6 = this.normal.dot($p.curr.minusNew(this.p1)) * $sysObj.coeffRest; $p.curr.minus(this.normal.multNew(v6)); $p.prev = $p.curr.minusNew(v9); } } }; 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 v4 = this.p1.x + v2 * (this.p2.x - this.p1.x); var v3 = this.p1.y + v2 * (this.p2.y - this.p1.y); $returnVect.x = v4; $returnVect.y = v3; }; 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 779 __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 780 __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 781 __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 v2 = $x1 - $x2; var v1 = $y1 - $y2; return Math.sqrt(v2 * v2 + v1 * v1); }; v1.angle = function ($x1, $y1, $x2, $y2) { return Math.atan2($x2 - $x1, $y2 - $y1) * Pirrest.Common.PiGeo.RADIAN; }; v1.RADIAN = 57.2957795130823; v1.DEGREE = 0.0174532925199433; ASSetPropFlags(Pirrest.Common.PiGeo.prototype, null, 1); } #endinitclip } movieClip 782 __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 v4 = 0.414213562373095 * $r; var v5 = Math.SQRT1_2 * $r; $target_mc.moveTo($x + $r, $y); $target_mc.curveTo($r + $x, v4 + $y, v5 + $x, v5 + $y); $target_mc.curveTo(v4 + $x, $r + $y, $x, $r + $y); $target_mc.curveTo(-v4 + $x, $r + $y, -v5 + $x, v5 + $y); $target_mc.curveTo(-$r + $x, v4 + $y, -$r + $x, $y); $target_mc.curveTo(-$r + $x, -v4 + $y, -v5 + $x, -v5 + $y); $target_mc.curveTo(-v4 + $x, -$r + $y, $x, -$r + $y); $target_mc.curveTo(v4 + $x, -$r + $y, v5 + $x, -v5 + $y); $target_mc.curveTo($r + $x, -v4 + $y, $r + $x, $y); }; ASSetPropFlags(Pirrest.PhisicsEngine.Graphics.prototype, null, 1); } #endinitclip } movieClip 783 __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 v3 = this.cx - $w.wp.curr.x; var v2 = this.cy - $w.wp.curr.y; var v5 = Math.sqrt(v3 * v3 + v2 * v2); var v6 = $w.wr + this.r - v5; if (v6 > 0) { v3 /= v5; v2 /= v5; $w.wp.curr.x -= v3 * v6; $w.wp.curr.y -= v2 * v6; var v7 = new Pirrest.PhisicsEngine.Vector(-v3, -v2); $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 v4 = ($p.curr.minusNew(v2)).normalize(); var v6 = v2.plusNew(v4.multNew(this.r)); $p.curr = v6; } }; ASSetPropFlags(Pirrest.PhisicsEngine.CircleSurface.prototype, null, 1); } #endinitclip } movieClip 784 __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 v5 = this.p1.curr.minusNew(this.p2.curr); var v3 = this.p1.curr.distance(this.p2.curr); var v4 = (v3 - this.restLength) / v3; var v2 = v5.mult(v4 * 0.5); this.p1.curr.minus(v2); this.p2.curr.plus(v2); }; 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 785 __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 v7 = $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 v5 = $pSystem.addParticle($center.x + $rWidth / 2, $center.y + $rHeight / 2, 0); var v4 = $pSystem.addParticle($center.x - $rWidth / 2, $center.y + $rHeight / 2, 0); $pSystem.addConstraint(v7, v6); $pSystem.addConstraint(v6, v5); $pSystem.addConstraint(v5, v4); $pSystem.addConstraint(v4, v7); $pSystem.addConstraint(v7, v5); $pSystem.addConstraint(v6, v4); this.p0 = v7; this.p1 = v6; this.p2 = v5; this.p3 = v4; }; ASSetPropFlags(Pirrest.PhisicsEngine.Rectangle.prototype, null, 1); } #endinitclip } movieClip 786 __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 v5 = this.getCentroid(); this.lineC.p2.x = this.lineC.p1.x + 0; this.lineC.p2.y = this.lineC.p1.y - 1; var v9 = this.pA.distance(this.pB); var v8 = this.pB.distance(this.pC); var v12 = this.calcTheta(this.pA, this.pB, this.pC); var v13 = this.calcTheta(this.pA, this.pB, this.pD); var v11 = this.calcTheta(this.pC, this.pB, this.pD); var v6 = (this.targetTheta - v12) / 2; var v10 = v13 + v6 * this.coeffStiff; var v4 = v11 - v6 * this.coeffStiff; this.pA.x = v9 * Math.sin(v10) + this.pB.x; this.pA.y = v9 * Math.cos(v10) + this.pB.y; this.pC.x = v8 * Math.sin(v4) + this.pB.x; this.pC.y = v8 * Math.cos(v4) + this.pB.y; var v7 = this.getCentroid(); var v3 = v7.x - v5.x; var v2 = v7.y - v5.y; this.pA.x -= v3; this.pA.y -= v2; this.pB.x -= v3; this.pB.y -= v2; this.pC.x -= v3; this.pC.y -= v2; }; v2.calcTheta = function ($pA, $pB, $pC) { var v2 = new Pirrest.PhisicsEngine.Vector($pB.x - $pA.x, $pB.y - $pA.y); var v3 = new Pirrest.PhisicsEngine.Vector($pC.x - $pB.x, $pC.y - $pB.y); var v4 = v2.dot(v3); var v5 = v2.cross(v3); return Math.atan2(v5, v4); }; v2.__set__theta = function ($t) { this.targetTheta = $t; return this.__get__theta(); }; v2.__get__theta = function () { return this.targetTheta; }; v2.paint = function () {}; v2.getCentroid = function () { var v3 = (this.pA.x + this.pB.x + this.pC.x) / 3; var v2 = (this.pA.y + this.pB.y + this.pC.y) / 3; return new Pirrest.PhisicsEngine.Vector(v3, v2); }; v2.addProperty('theta', v2.__get__theta, v2.__set__theta); ASSetPropFlags(Pirrest.PhisicsEngine.AngularConstraint.prototype, null, 1); } #endinitclip } movieClip 787 __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 788 __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 v3 = -this.curr.y; var v2 = this.curr.x; var v4 = Math.sqrt(v3 * v3 + v2 * v2); v3 /= v4; v2 /= v4; this.curr.x += this.speed * v3; this.curr.y += this.speed * v2; var v10 = this.prev.x; var v9 = this.prev.y; this.prev.x = this.curr.x; var v8 = this.prev.x; this.prev.y = this.curr.y; var v7 = this.prev.y; this.curr.x += $sysObj.coeffDamp * (v8 - v10); this.curr.y += $sysObj.coeffDamp * (v7 - v9); var v6 = Math.sqrt(this.curr.x * this.curr.x + this.curr.y * this.curr.y); var v5 = (v6 - this.wr) / v6; this.curr.x -= this.curr.x * v5; this.curr.y -= this.curr.y * v5; }; ASSetPropFlags(Pirrest.PhisicsEngine.RimParticle.prototype, null, 1); } #endinitclip } movieClip 789 __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 v5; for (v5 in this.under_mc) { var v3 = this.under_mc[v5]; 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 v8 = this.under_mc.jeep_dummy_mc.wheel_1_dummy_mc; var v9 = this.under_mc.jeep_dummy_mc.wheel_2_dummy_mc; var v7 = {'x': v8._x, 'y': v8._y}; var v6 = {'x': v9._x, 'y': v9._y}; this.under_mc.jeep_dummy_mc.localToGlobal(v7); this.under_mc.jeep_dummy_mc.localToGlobal(v6); this.globalToLocal(v7); 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 = v7.x; this.jeep_wheel_1_mc._y = v7.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 v6; var v4 = 250 - this.jeep_body_mc._x; var v3 = 200 - this.jeep_body_mc._y; var v8 = v4 - this._x; var v7 = v3 - this._y; var v5 = Pirrest.Common.PiGeo.distance(v4, v3, this._x, this._y); var v2 = v5 * 0.35; if (v2 > 50) { v2 = 50; } v6 = v2 / v5; this._x += v8 * v6; this._y += v7 * v6; }; ASSetPropFlags(Pirrest.BigFoot.Level.prototype, null, 1); } #endinitclip } movieClip 790 __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 v3 = 4; var v4 = 0.7; if (Key.isDown(37)) { this.driver_mc.move('back'); this.level.jeep_wheel_1_mc.wp.mass = v4; this.level.jeep_wheel_2_mc.wp.mass = -v4; } else { if (Key.isDown(39)) { this.driver_mc.move('front'); this.level.jeep_wheel_1_mc.wp.mass = -v4; this.level.jeep_wheel_2_mc.wp.mass = v4; } 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.counterMotor == true) { _root.motorStart.start(0, 1); } _root.counterMotor = false; } this.level.jeep_wheel_1_mc.rp.vs = v3; this.level.jeep_wheel_2_mc.rp.vs = v3 / 4; } else { if (Key.isDown(40)) { this.level.jeep_wheel_1_mc.rp.vs = -v3 / 4; this.level.jeep_wheel_2_mc.rp.vs = -v3 / 10; } else { _root.counterMotor = 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; } this.level.moveCamera(); this.linstenKeys(); this.level.p_system.timeStep(); this.level.p_system.paintWheels(); var v7 = -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 = v7; this._y = this.level.part.curr.y; this._x = this.level.part.curr.x; var v5 = {'x': this.driver_mc.head_mc._x, 'y': this.driver_mc.head_mc._y}; this.driver_mc.localToGlobal(v5); if (this.level.under_mc.ground_mc.hitTest(v5.x, v5.y, true)) { _global.gl_game_info.is_game_over = true; _root.main_mc.messages_mc.gotoAndStop('game_over'); } var v4 = {'x': this.driver_mc.foot_mc._x, 'y': this.driver_mc.foot_mc._y}; this.driver_mc.localToGlobal(v4); if (this.level.under_mc.ground_mc.hitTest(v4.x, v4.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 } frame 4 { if (Math.round(b1 / 1024) <= 35) { gotoAndPlay('loop1'); } } frame 5 { _root.b1 = _root.getBytesLoaded(); _root.b2 = _root.getBytesTotal(); _root.tgPrel = 1 + Math.round(b1 * 100 / b2); _root.tg = _root.tgPrel - 2; trace('_root.tg: ' + _root.tg); if (_root.tg <= 9) { _root.procent = '0' + _root.tg; } else { _root.procent = _root.tg; } _root.prel.gotoAndStop(_root.tgPrel); } movieClip 99 { } movieClip 101 { frame 1 { stop(); } } frame 9 { if (Math.round(b1 / 1024) <= 100) { gotoAndPlay('loop2'); } } movieClip 111 { frame 50 { stop(); _parent.play(); } } movieClip 134 { frame 1 { stop(); } frame 28 { gotoAndPlay('loop'); } } frame 11 { _root.b1 = _root.getBytesLoaded(); _root.b2 = _root.getBytesTotal(); _root.tgPrel = 1 + Math.round(b1 * 100 / b2); _root.tg = _root.tgPrel - 2; trace('_root.TG: ' + tgPrel); if (_root.tgPrel <= 9) { _root.procent = '0' + tg; trace(_root.procent); } else { _root.procent = tg; } _root.prel.gotoAndStop(_root.tgPrel); } frame 14 { if (b1 < b2) { gotoAndPlay('loop3'); } } frame 15 { _root.procent = '--'; prel.gotoAndStop(100); } frame 166 { _root.locatie = _url; if (_root.locatie.indexOf('www.freeonlinegames.com') != -1) { _root.play(); } else {} } frame 174 { _root.sunet = true; _root.motoLoop = new Sound(); _root.motoLoop.attachSound('motoLoop'); _root.motorStart = new Sound(); _root.motorStart.attachSound('motorStart'); _root.locatie = _url; if (_root.locatie.indexOf('www.freeonlinegames.com') != -1) { _root.play(); } else {} } movieClip 137 { frame 1 { stop(); } } frame 175 { _quality = 'BEST'; this.onEnterFrame = function () { gotoAndStop('init'); delete this.onEnterFrame; }; } frame 183 { prevFrame(); } movieClip 143 { } movieClip 146 { } movieClip 149 { } movieClip 152 { } movieClip 155 { } movieClip 158 { } movieClip 161 { } movieClip 162 { 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 { 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 163 lib_jeep_body { #initclip Object.registerClass('lib_jeep_body', Pirrest.BigFoot.JeepBody); #endinitclip } movieClip 166 lib_jeep_wheel2 { #initclip Object.registerClass('lib_jeep_wheel2', Pirrest.PhisicsEngine.Wheel); #endinitclip } movieClip 169 lib_jeep_wheel1 { #initclip Object.registerClass('lib_jeep_wheel1', Pirrest.PhisicsEngine.Wheel); #endinitclip } movieClip 173 { } movieClip 176 lib_point { #initclip Object.registerClass('lib_point', Pirrest.PhisicsEngine.Point); #endinitclip } movieClip 177 lib_surface { #initclip Object.registerClass('lib_surface', Pirrest.PhisicsEngine.Surface); #endinitclip } movieClip 179 lib_circle { #initclip Object.registerClass('lib_circle', Pirrest.PhisicsEngine.CircleSurface); #endinitclip } movieClip 182 { } movieClip 183 { } movieClip 184 { } movieClip 185 { } movieClip 188 lib_level_16 { #initclip Object.registerClass('lib_level_16', Pirrest.BigFoot.Level); #endinitclip } movieClip 190 { } movieClip 191 { } movieClip 193 lib_level_15 { #initclip Object.registerClass('lib_level_15', Pirrest.BigFoot.Level); #endinitclip } movieClip 197 { } movieClip 198 { } movieClip 201 lib_level_14 { #initclip Object.registerClass('lib_level_14', Pirrest.BigFoot.Level); #endinitclip } movieClip 203 { } movieClip 204 { } movieClip 207 lib_level_13 { #initclip Object.registerClass('lib_level_13', Pirrest.BigFoot.Level); #endinitclip } movieClip 211 { } movieClip 212 { } movieClip 215 lib_level_12 { #initclip Object.registerClass('lib_level_12', Pirrest.BigFoot.Level); #endinitclip } movieClip 217 { } movieClip 218 { } movieClip 220 lib_level_11 { #initclip Object.registerClass('lib_level_11', Pirrest.BigFoot.Level); #endinitclip } movieClip 224 { } movieClip 225 { } movieClip 228 lib_level_10 { #initclip Object.registerClass('lib_level_10', Pirrest.BigFoot.Level); #endinitclip } movieClip 230 { } movieClip 231 { } movieClip 233 lib_level_9 { #initclip Object.registerClass('lib_level_9', Pirrest.BigFoot.Level); #endinitclip } movieClip 237 { } movieClip 238 { } movieClip 242 lib_level_8 { #initclip Object.registerClass('lib_level_8', Pirrest.BigFoot.Level); #endinitclip } movieClip 244 { } movieClip 245 { } movieClip 246 lib_level_7 { #initclip Object.registerClass('lib_level_7', Pirrest.BigFoot.Level); #endinitclip } movieClip 250 { } movieClip 251 { } movieClip 253 { } movieClip 256 lib_level_6 { #initclip Object.registerClass('lib_level_6', Pirrest.BigFoot.Level); #endinitclip } movieClip 258 { } movieClip 259 { } movieClip 260 lib_level_5 { #initclip Object.registerClass('lib_level_5', Pirrest.BigFoot.Level); #endinitclip } movieClip 264 { } movieClip 265 { } movieClip 266 lib_level_4 { #initclip Object.registerClass('lib_level_4', Pirrest.BigFoot.Level); #endinitclip } movieClip 268 { } movieClip 269 { } movieClip 270 lib_level_3 { #initclip Object.registerClass('lib_level_3', Pirrest.BigFoot.Level); #endinitclip } movieClip 274 { } movieClip 275 { } movieClip 279 lib_level_2 { #initclip Object.registerClass('lib_level_2', Pirrest.BigFoot.Level); #endinitclip } movieClip 281 { } movieClip 282 { } movieClip 283 lib_level_1 { #initclip Object.registerClass('lib_level_1', Pirrest.BigFoot.Level); #endinitclip } frame 194 { 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'); } else { main_mc.messages_mc.gotoAndPlay('un_pause'); } } if (Key.isDown(65)) { ++_global.gl_user_info.curr_level; _root.main_mc.gotoAndPlay('replay'); } if (_global.gl_user_info.curr_level > 16) { _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}; level_16 = {'link': 'lib_level_16', '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, 'level_16': level_16}; _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 level_16; delete levels; main_mc.gotoAndStop('intro'); } button 291 { on (keyPress '<Space>') { _root.secundeTXT = '00'; _root.minuteTXT = '00'; gotoAndStop('game'); } } button 297 { on (release) { getURL('http://www.freeonlinegames.com/?DirtBike', '_blank'); } } button 300 { on (release) { targetul1 = 'http://www.freeonlinegames.com/downloads/' + _parent.wynume + '.exe'; getURL(targetul1, ''); } } movieClip 308 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but1); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but1); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } button 309 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wynume; getURL(targetul2, '_blank'); } } movieClip 316 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but2); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } button 317 { on (release) { targetul3 = 'http://www.freegamesforyourwebsite.com/?' + _parent.wynume; getURL(targetul3, '_blank'); } } movieClip 320 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but3); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } movieClip 322 { } button 325 { on (release) { targetul1 = 'http://www.freeonlinegames.com/downloads/' + _parent.wynume + '.exe'; getURL(targetul1, ''); } } movieClip 326 { frame 1 { stop(); } } button 329 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wynume; getURL(targetul2, '_blank'); } } movieClip 330 { frame 1 { stop(); } } button 331 { on (release, keyPress 'p') { _parent.instructionsFunction(); } } movieClip 338 { frame 1 { stop(); if (_parent.wyaliniere == 'Centru') { this.gotoAndStop(2); } if (_parent.wyaliniere == 'Dreapta') { this.gotoAndStop(3); } } frame 2 { wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } frame 3 { wxculoarea2 = new Color(but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); } } button 339 { on (release, keyPress 'p') { _parent.instructionsFunction(); } } movieClip 340 { frame 1 { stop(); } } movieClip 341 { frame 1 { function instructionsFunction() { _parent.instructions._visible = true; } } frame 1 { stop(); if (wyasezare == 'Orizontal' && wyinstructions == false) { this.gotoAndStop(2); } if (wyasezare == 'Vertical' && wyinstructions == true && wypozitie == 'Sus') { this.gotoAndStop(3); } if (wyasezare == 'Vertical' && wyinstructions == true && wypozitie == 'Jos') { this.gotoAndStop(4); } if (wyasezare == 'Orizontal' && wyinstructions == true && wypozitie == 'Sus') { this.gotoAndStop(5); } if (wyasezare == 'Orizontal' && wyinstructions == true && wypozitie == 'Jos') { this.gotoAndStop(6); } my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 2 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 3 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 4 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 5 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } frame 6 { stop(); my_color = new Color(my_mc); my_color.setRGB(wyculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wynbut1.but1); wxculoarea3 = new Color(wynbut2.but2); wxculoarea4 = new Color(wynbut3.but3); wxculoarea5 = new Color(wynbut4.but4); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3.setTransform(myColorTransform); wxculoarea4.setTransform(myColorTransform); wxculoarea5.setTransform(myColorTransform); } } button 347 { on (release) { _parent.instructions._visible = false; } } movieClip 350 { } movieClip 353 { } movieClip 358 { } button 359 { on (keyPress '<Space>') { _root.main_mc.gotoAndPlay('replay'); } } button 362 { on (release) { _root.xdada = 0; _root.score = Number(_root.minuteTXT) * 60 + Number(_root.secundeTXT); trace('scor: ' + _root.score); _root.gotoAndPlay('submitScore'); } } button 366 { on (release) { _root.main_mc.gotoAndStop('intro'); } } button 369 { on (keyPress '<Space>') { _root.main_mc.gotoAndPlay('replay'); } } movieClip 370 { frame 1 { if (_root.sunet == true) { _root.motoLoop.start(0, 999); } } frame 8 { stopAllSounds(); pause_mc.caption = 'PAUSE'; next_btn.onRelease = function () { _root.secunde = 0; _root.secundeTXT = '00'; _root.minute = 0; _root.minuteTXT = '00'; _root.main_mc.gotoAndPlay('replay'); }; menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; text_1_mc.caption = 'RESTART'; text_2_mc.caption = 'MAIN MENU'; } frame 13 { stop(); } frame 21 { gotoAndStop('empty'); } frame 23 { _parent.meniu._visible = false; _parent.counter._visible = false; _parent.bara._visible = false; _root.motoLoop.stop(); _root.motorStart.stop(); next_btn.onRelease = function () { _root.main_mc.gotoAndPlay('replay'); }; menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; title_mc.caption = 'LEVEL COMPLETED!'; text_1_mc.caption = 'NEXT'; text_2_mc.caption = 'MAIN MENU'; } frame 32 { stop(); } frame 34 { _parent.meniu._visible = false; _parent.counter._visible = false; _parent.bara._visible = false; _root.motoLoop.stop(); _root.motorStart.stop(); menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; title_mc.caption = 'GAME COMPLETED!'; text_1_mc.caption = ''; text_2_mc.caption = 'MAIN MENU'; } instance of movieClip 341 { onClipEvent (construct) { wynume = 'DirtBike'; wyculoare = 6710886; wyasezare = 'Vertical'; wyaliniere = 'Centru'; wypozitie = 'Jos'; wyinstructions = false; } } frame 43 { stop(); } frame 45 { _parent.meniu._visible = false; _parent.counter._visible = false; _parent.bara._visible = false; _root.motoLoop.stop(); _root.motorStart.stop(); next_btn.onRelease = function () { _root.main_mc.gotoAndPlay('replay'); }; menu_btn.onRelease = function () { _root.main_mc.gotoAndStop('intro'); }; title_mc.caption = 'CRASHED'; text_1_mc.caption = 'Try Again'; text_2_mc.caption = 'MAIN MENU'; } frame 54 { stop(); } } movieClip 374 { } movieClip 378 { frame 31 { if (_parent.messages_mc._currentframe == 1) { ++_root.secunde; if (_root.secunde < 10) { _root.secundeTXT = '0' + _root.secunde; } else { _root.secundeTXT = _root.secunde; } if (_root.secunde % 60 == 0) { _root.secunde = 0; _root.secundeTXT = '00'; ++_root.minute; if (_root.minute < 10) { _root.minuteTXT = '0' + _root.minute; } else { _root.minuteTXT = _root.minute; } } } } } button 380 { on (release) { targetul3 = 'http://www.freegamesforyourwebsite.com/?' + _parent.wxnume; getURL(targetul3, '_blank'); } } button 381 { on (release) { targetul2 = 'http://www.freeonlinegames.com/?' + _parent.wxnume; getURL(targetul2, '_blank'); } } button 382 { on (release) { _parent.mainMenuFunction(); } } button 383 { on (release) { targetul1 = 'http://www.freeonlinegames.com/downloads/' + _parent.wxnume + '.exe'; getURL(targetul1, ''); } } button 384 { on (release, keyPress 'p') { _parent.pauseFunction(); } } button 385 { on (release, keyPress 's') { _parent.soundFunction(); } } movieClip 396 { frame 1 { stop(); wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 1 { _parent.wxbutno = 6; if (_parent.wxdownload == false && _parent.wxpause == true && _parent.wxsound == true) { this.gotoAndStop(2); _parent.wxbutno = 5; } if (_parent.wxdownload == true && _parent.wxpause == false && _parent.wxsound == true) { this.gotoAndStop(3); _parent.wxbutno = 5; } if (_parent.wxdownload == true && _parent.wxpause == true && _parent.wxsound == false) { this.gotoAndStop(4); _parent.wxbutno = 5; } if (_parent.wxdownload == false && _parent.wxpause == false && _parent.wxsound == true) { this.gotoAndStop(5); _parent.wxbutno = 4; } if (_parent.wxdownload == false && _parent.wxpause == true && _parent.wxsound == false) { this.gotoAndStop(6); _parent.wxbutno = 4; } if (_parent.wxdownload == true && _parent.wxpause == false && _parent.wxsound == false) { this.gotoAndStop(7); _parent.wxbutno = 4; } if (_parent.wxdownload == false && _parent.wxpause == false && _parent.wxsound == false) { this.gotoAndStop(8); _parent.wxbutno = 3; } } frame 2 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 3 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 4 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 5 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 6 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 7 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } frame 8 { wxculoarea3 = new Color(but1); wxculoarea4 = new Color(but2); wxculoarea5 = new Color(but3); wxculoarea6 = new Color(but4); wxculoarea7 = new Color(but5); wxculoarea8 = new Color(but6); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': _parent.xrtb5, 'ga': '100', 'gb': _parent.xgtb5, 'ba': '100', 'bb': _parent.xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); wxculoarea4.setTransform(myColorTransform2); wxculoarea5.setTransform(myColorTransform2); wxculoarea6.setTransform(myColorTransform2); wxculoarea7.setTransform(myColorTransform2); wxculoarea8.setTransform(myColorTransform2); } } button 401 { on (press) { _parent.play(); } } movieClip 404 { frame 1 { stop(); if (_parent.wxaliniere == 'Dreapta-Jos') { this.gotoAndStop(2); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 6) { this.gotoAndStop(3); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 5) { this.gotoAndStop(5); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 4) { this.gotoAndStop(6); } if (_parent.wxaliniere == 'Dreapta-Sus' && _parent.wxbutno == 3) { this.gotoAndStop(7); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 6) { this.gotoAndStop(4); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 5) { this.gotoAndStop(8); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 4) { this.gotoAndStop(9); } if (_parent.wxaliniere == 'Stanga-Sus' && _parent.wxbutno == 3) { this.gotoAndStop(10); } } frame 2 { tg._x = 147; tg._y = 1.1; } frame 3 { tg._x = 147; tg._y = -174.9; } frame 4 { tg._x = 1.5; tg._y = -174.9; } frame 5 { tg._x = 147; tg._y = -152.4; } frame 6 { tg._x = 147; tg._y = -128.9; } frame 7 { tg._x = 147; tg._y = -104.9; } frame 8 { tg._x = 1.5; tg._y = -151.4; } frame 9 { tg._x = 1.5; tg._y = -128.4; } frame 10 { tg._x = 1.5; tg._y = -104.9; } } movieClip 405 { } movieClip 416 { } movieClip 421 { frame 1 { stop(); this.onRollOver = function () { if (_parent._parent._currentframe <= 10) { _parent._parent.gotoAndPlay(11); } }; if (_parent._parent.wxbutno == 5) { this.gotoAndStop(2); } if (_parent._parent.wxbutno == 4) { this.gotoAndStop(3); } if (_parent._parent.wxbutno == 3) { this.gotoAndStop(4); } } } movieClip 422 { frame 1 { stop(); if (_parent.wxaliniere == 'Stanga-Sus' || _parent.wxaliniere == 'Dreapta-Sus') { this.gotoAndStop(2); } } } movieClip 423 { frame 1 { function pauseFunction() {} function soundFunction() { if (_root.sunet == true) { _root.sunet = false; _root.motoLoop.stop(); } else { _root.sunet = true; _root.motoLoop.start(0, 999); } trace('sunet: ' + _root.sunet); } function mainMenuFunction() { _root.main_mc.gotoAndStop('intro'); } } frame 1 { stop(); wxnguides._alpha = 0; my_color = new Color(my_mc); my_color.setRGB(wxculoare); myValue = (my_color.getRGB()).toString(16); trace(myValue.length); if (myValue.length == 5) { myValue = '0' + myValue; } if (myValue.length == 4) { myValue = '00' + myValue; } if (myValue.length == 3) { myValue = '000' + myValue; } if (myValue.length == 2) { myValue = '0000' + myValue; } if (myValue.length == 1) { myValue = '00000' + myValue; } xtbcolor = myValue; xrtb5 = Number('0x' + xtbcolor.slice(0, 2)) - 1; xgtb5 = Number('0x' + xtbcolor.slice(2, 4)) - 1; xbtb5 = Number('0x' + xtbcolor.slice(4, 6)) - 1; wxculoarea2 = new Color(wxnmenu.tg); myColorTransform = new Object(); myColorTransform = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea2.setTransform(myColorTransform); wxculoarea3 = new Color(wxnfer); myColorTransform2 = new Object(); myColorTransform2 = {'ra': '100', 'rb': xrtb5, 'ga': '100', 'gb': xgtb5, 'ba': '100', 'bb': xbtb5, 'aa': '100', 'ab': '0'}; wxculoarea3.setTransform(myColorTransform2); } frame 10 { stop(); } } movieClip 424 { frame 9 { stop(); } frame 10 { stopAllSounds(); _root.secunde = 0; _root.secundeTXT = '00'; _root.minute = 0; _root.minuteTXT = '00'; _global.gl_user_info.curr_level = 1; start_btn.onRelease = function () { gotoAndStop('game'); }; } instance of movieClip 341 { onClipEvent (construct) { wynume = 'DirtBike'; wyculoare = 3811090; wyasezare = 'Orizontal'; wyaliniere = 'Stanga'; wypozitie = 'Jos'; wyinstructions = true; } } instance instructions of movieClip 350 { onClipEvent (load) { this._visible = false; } } frame 14 { stop(); } frame 17 { _root.startGame(); nextFrame(); } frame 18 { _root.main_mc.main_cont_mc.level_mc.init(); trace(_currentframe); } instance counter of movieClip 378 { } instance meniu of movieClip 423 { onClipEvent (construct) { wxnume = 'joc'; wxaliniere = 'Stanga-Sus'; wxculoare = 6697779; wxdownload = true; wxpause = false; wxsound = true; } } frame 27 { stop(); } } frame 204 { prevFrame(); } frame 205 { removeMovieClip(_root.xxc1); removeMovieClip(_root.xxc2); removeMovieClip(_root.xxc3); removeMovieClip(_root.xxc4); } frame 206 { _root.menu.removeMovieClip(); _root.gameid = 'DirtBike'; _root.best = 100000 - _root.score; _root.score = 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; } } frame 208 { cale = 'http://www.freeonlinegames.com/scoreboard/score.php?game=' + _root.gameid; loadVariablesNum(cale, 0, 'POST'); } movieClip 426 { } movieClip 427 { } movieClip 429 { frame 1 { scroll1.setScrollProperties(130, 0, 220); this.chHand1 = function () { scoresScroll._y = -(scroll1.getScrollPosition() * 2); }; scroll1.setChangeHandler('chHand1'); i = 1; while (i <= 30) { scoresScroll['n' + i].text = _root.monthnume[i]; scoresScroll['s' + i].text = _root.monthscor[i]; ++i; } } } movieClip 433 { } button 436 { on (release) { _root.gotoAndStop('coperta'); } } movieClip 438 { } frame 216 { if (done != 1) { gotoAndPlay('loopLoad'); } else { gotoAndPlay('scoreTable'); } } frame 220 { monthnume = new Array(); monthscor = new Array(); i = 1; while (i <= 100) { monthnume[i] = _root['name' + i]; monthscor[i] = Number(_root['score' + i].slice(0, _root['score' + i].length - 1)); ++i; } evernume = new Array(); everscor = new Array(); i = 1; while (i <= 100) { evernume[i] = _root['ename' + i]; everscor[i] = Number(_root['escore' + i].slice(0, _root['escore' + i].length - 1)); ++i; } } frame 221 { stop(); if (_root.best > everscor[100]) { scoreWind.gotoAndStop('submitScoreYes'); } else { scoreWind.gotoAndStop('submitScoreNo'); } if (_root.xdada == 1) { scoreWind.gotoAndStop('topEver'); } } movieClip 740 { } movieClip 741 { frame 1 { scroll1.setScrollProperties(130, 0, 915); this.chHand1 = function () { scoresScroll._y = -(scroll1.getScrollPosition() * 2); }; scroll1.setChangeHandler('chHand1'); q = 1; while (q <= 100) { scoresScroll['n' + q].text = _root.evernume[q]; scoresScroll['s' + q].text = _root.everscor[q]; ++q; } } instance scroll1 of movieClip 83 FScrollBarSymbol { onClipEvent (construct) { _targetInstanceName = ''; horizontal = false; } } } movieClip 744 { } button 747 { on (release) { _root.gotoAndStop('coperta'); } } movieClip 750 { } movieClip 751 { } movieClip 753 { } movieClip 754 { } movieClip 756 { } movieClip 758 { } movieClip 760 { } button 763 { on (release) { i = 1; while (i <= 100) { if (_root.best > _root.monthscor[i]) { k = 100; while (k >= i + 1) { _root.monthscor[k] = _root.monthscor[k - 1]; _root.monthnume[k] = _root.monthnume[k - 1]; --k; } _root.monthscor[i] = _root.best; _root.monthnume[i] = _root.nickname; i = 31; } ++i; } i = 1; while (i <= 100) { if (_root.best > _root.everscor[i]) { k = 100; while (k >= i + 1) { _root.everscor[k] = _root.everscor[k - 1]; _root.evernume[k] = _root.evernume[k - 1]; --k; } _root.everscor[i] = _root.best; _root.evernume[i] = _root.nickname; i = 31; } ++i; } gotoAndPlay('submit'); } } movieClip 767 { } button 769 { on (release) { _root.gotoAndStop('coperta'); } } movieClip 773 { frame 1 { stop(); } frame 9 { stop(); } frame 22 { stop(); } frame 34 { var my_date = new Date(); codul = Math.round(my_date.getTime() / 1000) * _root.best; cale = 'http://www.freeonlinegames.com/scoreboard/update.php?game=' + _root.gameid + '&name=' + _root.nickname + '&score=' + _root.best + '&code=' + codul; loadVariablesNum(cale, 0, 'GET'); gotoAndPlay('loop'); } frame 45 { if (_root.updated != 1) { gotoAndPlay('loop'); } else { _root.best = 0; _root.score = 0; _root.xdada = 1; _root.gotoAndPlay('submitScore'); } } }




http://swfchan.com/49/244532/info.shtml
Created: 5/3 -2022 23:14:26 Last modified: 5/3 -2022 23:14:26 Server time: 25/04 -2024 13:10:28