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

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

VXR Racer.swf

This is the info page for
Flash #25226

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


ActionScript [AS1/AS2]
Combined Code
movieClip 12 fcb_hitArea { } movieClip 14 { } movieClip 16 { } movieClip 18 { } movieClip 20 { } movieClip 21 { 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 23 { } movieClip 24 { frame 1 { var component = _parent._parent; component.registerSkinElement(background_mc, 'background'); } } movieClip 26 { } movieClip 27 { frame 1 { var component = _parent._parent; component.registerSkinElement(background_mc, 'backgroundDisabled'); } } movieClip 28 { } movieClip 29 { frame 1 { var component = _parent._parent; component.registerSkinElement(background_mc, 'backgroundDisabled'); } } movieClip 31 { } movieClip 32 { frame 1 { var component = _parent._parent; component.registerSkinElement(check_mc, 'foregroundDisabled'); } } movieClip 34 { } movieClip 35 { frame 1 { var component = _parent._parent; component.registerSkinElement(check_mc, 'check'); } } movieClip 36 fcb_states { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 39 FLabelSymbol { #initclip _global.FLabelClass = function () { if (this.hostComponent == undefined) { this.hostComponent = (this._parent.controller == undefined) ? this._parent : this._parent.controller; } if (this.customTextStyle == undefined) { if (this.hostComponent.textStyle == undefined) { this.hostComponent.textStyle = new TextFormat(); } this.textStyle = this.hostComponent.textStyle; this.enable = true; } }; FLabelClass.prototype = new MovieClip(); Object.registerClass('FLabelSymbol', FLabelClass); FLabelClass.prototype.setLabel = function (label) { var val = this.hostComponent.styleTable.embedFonts.value; if (val != undefined) { this.labelField.embedFonts = val; } this.labelField.setNewTextFormat(this.textStyle); this.labelField.text = label; this.labelField._height = this.labelField.textHeight + 2; }; FLabelClass.prototype.setSize = function (width) { this.labelField._width = width; }; FLabelClass.prototype.setEnabled = function (enable) { this.enable = enable; var tmpColor = this.hostComponent.styleTable[enable ? 'textColor' : 'textDisabled'].value; if (tmpColor == undefined) { tmpColor = enable ? 0 : 8947848; } this.setColor(tmpColor); }; FLabelClass.prototype.getLabel = function () { return this.labelField.text; }; FLabelClass.prototype.setColor = function (col) { this.labelField.textColor = col; }; #endinitclip frame 1 { } } movieClip 40 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 i in this.styleFormat_prm) { this.setStyleProperty(i, this.styleFormat_prm[i]); } } }; 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 funct in this.methodTable) { this[funct](); } }; FUIComponentClass.prototype.drawRect = function (x, y, w, h) { var inner = this.styleTable.focusRectInner.value; var outer = this.styleTable.focusRectOuter.value; if (inner == undefined) { inner = 16777215; } if (outer == undefined) { outer = 0; } this.createEmptyMovieClip('focusRect', 1000); this.focusRect.controller = this; this.focusRect.lineStyle(1, outer); 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, inner); 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 tmpValue = parseInt(value); if (!isNaN(tmpValue)) { value = tmpValue; } var global = 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 || !global) { 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 textProp = propName.subString(4, propName.length); this.textStyle[textProp] = value; this.invalidate('setSize'); } else { for (var j in this.styleTable[propName].coloredMCs) { var myColor = new Color(this.styleTable[propName].coloredMCs[j]); if (this.styleTable[propName].value == undefined) { var myTObj = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'}; myColor.setTransform(myTObj); } else { myColor.setRGB(value); } } } } } this.styleTable[propName].useGlobal = global; } }; 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 myColor = new Color(skinMCRef); myColor.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 i in arguments[0]) { this[i] = arguments[0][i]; } } }; _global.FStyleFormat.prototype = new Object(); FStyleFormat.prototype.addListener = function () { var arg = 0; while (arg < arguments.length) { var mcRef = arguments[arg]; this.listeners[arguments[arg]] = mcRef; for (var i in this) { if (this.isAStyle(i)) { mcRef.updateStyleProperty(this, i.toString()); } } ++arg; } }; FStyleFormat.prototype.removeListener = function (component) { this.listeners[component] = undefined; for (var prop in this) { if (this.isAStyle(prop)) { if (component.styleTable[prop].useGlobal == this.isGlobal) { component.styleTable[prop].useGlobal = true; var value = this.isGlobal ? undefined : globalStyleFormat[prop]; component.setStyleProperty(prop, value, true); } } } }; FStyleFormat.prototype.applyChanges = function () { var count = 0; for (var i in this.listeners) { var component = this.listeners[i]; if (arguments.length > 0) { var j = 0; while (j < arguments.length) { if (this.isAStyle(arguments[j])) { component.updateStyleProperty(this, arguments[j]); } ++j; } } else { for (var j in this) { if (this.isAStyle(j)) { component.updateStyleProperty(this, j.toString()); } } } } }; FStyleFormat.prototype.isAStyle = function (name) { return this.nonStyles[name] ? false : true; }; #endinitclip frame 1 { } } movieClip 42 { } movieClip 43 dropfall { } movieClip 45 { } movieClip 46 { } movieClip 47 rain { frame 1 { i = 0; max = 200; while (i < max) { attachMovie('dropfall', 'dropfall' + i, i); eval('dropfall' + i)._rotation = random(360); tellTarget (''dropfall' + i') { gotoAndPlay(random(25)); _x = _x + random(50) - 25; _y = _y + random(50) - 25; scale = random(100); _xscale = scale; _alpha = scale - 50; } ++i; } stop(); } } movieClip 49 { } movieClip 50 smoke { frame 19 { stop(); } } movieClip 71 { } movieClip 72 { } movieClip 73 { } movieClip 75 bonus_streak { frame 20 { stop(); } frame 50 { stop(); } } movieClip 76 streak { frame 31 { stop(); } } movieClip 78 { } movieClip 81 { } movieClip 84 { } movieClip 87 { } movieClip 90 { } movieClip 93 { } movieClip 96 { } movieClip 97 { } movieClip 100 { frame 1 { stop(); } frame 21 { stop(); } frame 41 { stop(); } frame 61 { stop(); } frame 81 { stop(); } frame 101 { stop(); } frame 175 { tellTarget ('/') { play(); } } } movieClip 103 { } movieClip 106 { } movieClip 107 car_2 { } movieClip 110 { } movieClip 113 { } movieClip 116 { } movieClip 117 car_1 { } movieClip 122 { } movieClip 123 splash { frame 1 { play(); } frame 50 { stop(); } } movieClip 127 { } movieClip 128 skid { frame 1 { play(); } frame 50 { stop(); } } movieClip 130 pixel { } movieClip 132 { } movieClip 134 { } movieClip 136 { } movieClip 138 { } movieClip 140 { } movieClip 141 { } movieClip 143 { } movieClip 146 track_7R { } movieClip 148 track_7 { } movieClip 150 { } movieClip 152 { } movieClip 153 { } movieClip 155 { } movieClip 158 track_3R { } movieClip 160 track_3 { } movieClip 162 { } movieClip 164 { } movieClip 166 { } movieClip 168 { } movieClip 171 track_6R { } movieClip 173 track_6 { } movieClip 175 { } movieClip 177 { } movieClip 179 { } movieClip 181 { } movieClip 184 track_2R { } movieClip 186 track_2 { } movieClip 188 { } movieClip 190 { } movieClip 192 { } movieClip 194 { } movieClip 197 track_5R { } movieClip 199 track_5 { } movieClip 201 { } movieClip 203 { } movieClip 205 { } movieClip 207 { } movieClip 210 track_4R { } movieClip 212 track_4 { } movieClip 214 { } movieClip 216 { } movieClip 218 { } movieClip 220 { } movieClip 223 track_1R { } movieClip 225 track_1 { } button 230 { on (release) { getURL('http://www.gamezhero.com/?from=vxr', ''); } } movieClip 231 surround { } movieClip 235 { } movieClip 236 { frame 1 { gotoAndPlay(random(400)); } } movieClip 237 { } movieClip 241 { } movieClip 242 { } movieClip 243 track_6_upperR { } movieClip 244 track_6_upper { } movieClip 245 track_2_upperR { } movieClip 246 track_2_upper { } movieClip 247 track_5_upperR { } movieClip 248 track_5_upper { } movieClip 249 track_4_upperR { } movieClip 250 track_4_upper { } movieClip 251 track_1_upperR { } movieClip 252 track_1_upper { } movieClip 254 fader { } movieClip 261 { } movieClip 269 { frame 60 { stop(); } } movieClip 270 traffic_lights { frame 66 { stop(); } } movieClip 272 readout { } movieClip 273 track_3_upperR { } movieClip 274 track_3_upper { } movieClip 276 track_7_upperR { } movieClip 277 track_7_upper { } movieClip 282 { frame 1 { gotoAndStop(random(5)); } frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 283 sponsor { frame 26 { stop(); } } movieClip 285 { } movieClip 286 oilslick { frame 232 { stop(); } } movieClip 287 { } movieClip 289 FBoundingBoxSymbol { frame 1 { var component = _parent; component.registerSkinElement(boundingBox, 'background'); stop(); } frame 2 { component.registerSkinElement(boundingBox2, 'backgroundDisabled'); stop(); } } movieClip 291 { } movieClip 292 FCheckBoxSymbol { #initclip function FCheckBoxClass() { this.init(); } FCheckBoxClass.prototype = new FUIComponentClass(); Object.registerClass('FCheckBoxSymbol', FCheckBoxClass); FCheckBoxClass.prototype.init = function () { super.setSize(this._width, this._height); this.boundingBox_mc.unloadMovie(); this.attachMovie('fcb_hitArea', 'fcb_hitArea_mc', 1); this.attachMovie('fcb_states', 'fcb_states_mc', 2); this.attachMovie('FLabelSymbol', 'fLabel_mc', 3); super.init(); this.setChangeHandler(this.changeHandler); this._xscale = 100; this._yscale = 100; this.setSize(this.width, this.height); if (this.initialValue == undefined) { this.setCheckState(false); } else { this.setCheckState(this.initialValue); } if (this.label != undefined) { this.setLabel(this.label); } this.ROLE_SYSTEM_CHECKBUTTON = 44; this.STATE_SYSTEM_CHECKED = 16; this.EVENT_OBJECT_STATECHANGE = 32778; this.EVENT_OBJECT_NAMECHANGE = 32780; this._accImpl.master = this; this._accImpl.stub = false; this._accImpl.get_accRole = this.get_accRole; this._accImpl.get_accName = this.get_accName; this._accImpl.get_accState = this.get_accState; this._accImpl.get_accDefaultAction = this.get_accDefaultAction; this._accImpl.accDoDefaultAction = this.accDoDefaultAction; }; FCheckBoxClass.prototype.setLabelPlacement = function (pos) { this.setLabel(this.getLabel()); this.txtFormat(pos); var halfLabelH = this.fLabel_mc._height / 2; var halfFrameH = this.fcb_states_mc._height / 2; var vertCenter = halfFrameH - halfLabelH; var checkWidth = this.fcb_states_mc._width; var frame = this.fcb_states_mc; var label = this.fLabel_mc; var w = 0; if (frame._width > this.width) { w = 0; } else { w = this.width - frame._width; } this.fLabel_mc.setSize(w); if (pos == 'right' || pos == undefined) { this.labelPlacement = 'right'; this.fcb_states_mc._x = 0; this.fLabel_mc._x = checkWidth; this.txtFormat('left'); } else { if (pos == 'left') { this.labelPlacement = 'left'; this.fLabel_mc._x = 0; this.fcb_states_mc._x = this.width - checkWidth; this.txtFormat('right'); } } this.fLabel_mc._y = vertCenter; this.fcb_hitArea_mc._y = vertCenter; }; FCheckBoxClass.prototype.txtFormat = function (pos) { var txtS = this.textStyle; var sTbl = this.styleTable; txtS.align = (sTbl.textAlign.value == undefined) ? txtS.align : undefined; txtS.leftMargin = (sTbl.textLeftMargin.value == undefined) ? 0 : undefined; txtS.rightMargin = (sTbl.textRightMargin.value == undefined) ? 0 : undefined; if (this.flabel_mc._height > this.height) { super.setSize(this.width, this.flabel_mc._height); } else { super.setSize(this.width, this.height); } this.fLabel_mc.labelField.setTextFormat(this.textStyle); this.setEnabled(this.enable); }; FCheckBoxClass.prototype.setHitArea = function (w, h) { var hit = this.fcb_hitArea_mc; this.hitArea = hit; if (this.fcb_states_mc._width > w) { hit._width = this.fcb_states_mc._width; } else { hit._width = w; } hit._visible = false; if (arguments.length > 1) { hit._height = h; } }; FCheckBoxClass.prototype.setSize = function (w) { this.setLabel(this.getLabel()); this.setLabelPlacement(this.labelPlacement); if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) { super.setSize(w, this.flabel_mc.labelField._height); } this.setHitArea(this.width, this.height); this.setLabelPlacement(this.labelPlacement); }; FCheckBoxClass.prototype.drawFocusRect = function () { this.drawRect(-2, -2, this._width + 6, this._height - 1); }; FCheckBoxClass.prototype.onPress = function () { this.pressFocus(); _root.focusRect.removeMovieClip(); var states = this.fcb_states_mc; if (this.getValue()) { states.gotoAndStop('checkedPress'); } else { states.gotoAndStop('press'); } }; FCheckBoxClass.prototype.onRelease = function () { this.fcb_states_mc.gotoAndStop('up'); this.setValue(!this.checked); }; FCheckBoxClass.prototype.onReleaseOutside = function () { var states = this.fcb_states_mc; if (this.getValue()) { states.gotoAndStop('checkedEnabled'); } else { states.gotoAndStop('up'); } }; FCheckBoxClass.prototype.onDragOut = function () { var states = this.fcb_states_mc; if (this.getValue()) { states.gotoAndStop('checkedEnabled'); } else { states.gotoAndStop('up'); } }; FCheckBoxClass.prototype.onDragOver = function () { var states = this.fcb_states_mc; if (this.getValue()) { states.gotoAndStop('checkedPress'); } else { states.gotoAndStop('press'); } }; FCheckBoxClass.prototype.setValue = function (checkedValue) { if (checkedValue || checkedValue == undefined) { this.setCheckState(checkedValue); } else { if (checkedValue == false) { this.setCheckState(checkedValue); } } this.executeCallBack(); if (Accessibility.isActive()) { Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true); } }; FCheckBoxClass.prototype.setCheckState = function (checkedValue) { var states = this.fcb_states_mc; if (this.enable) { this.flabel_mc.setEnabled(true); if (checkedValue || checkedValue == undefined) { states.gotoAndStop('checkedEnabled'); this.enabled = true; this.checked = true; } else { states.gotoAndStop('up'); this.enabled = true; this.checked = false; } } else { this.flabel_mc.setEnabled(false); if (checkedValue || checkedValue == undefined) { states.gotoAndStop('checkedDisabled'); this.enabled = false; this.checked = true; } else { states.gotoAndStop('uncheckedDisabled'); this.enabled = false; this.checked = false; this.focusRect.removeMovieClip(); } } }; FCheckBoxClass.prototype.getValue = function () { return this.checked; }; FCheckBoxClass.prototype.setEnabled = function (enable) { if (enable == true || enable == undefined) { this.enable = true; Super.setEnabled(true); } else { this.enable = false; Super.setEnabled(false); } this.setCheckState(this.checked); }; FCheckBoxClass.prototype.getEnabled = function () { return this.enable; }; FCheckBoxClass.prototype.setLabel = function (label) { this.fLabel_mc.setLabel(label); this.txtFormat(); if (Accessibility.isActive()) { Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE); } }; FCheckBoxClass.prototype.getLabel = function () { return this.fLabel_mc.labelField.text; }; FCheckBoxClass.prototype.setTextColor = function (color) { this.fLabel_mc.labelField.textColor = color; }; FCheckBoxClass.prototype.myOnKeyDown = function () { if (Key.getCode() == 32 && this.pressOnce == undefined && this.enabled == true) { this.setValue(!this.getValue()); this.pressOnce = true; } }; FCheckBoxClass.prototype.myOnKeyUp = function () { if (Key.getCode() == 32) { this.pressOnce = undefined; } }; FCheckBoxClass.prototype.get_accRole = function (childId) { return this.master.ROLE_SYSTEM_CHECKBUTTON; }; FCheckBoxClass.prototype.get_accName = function (childId) { return this.master.getLabel(); }; FCheckBoxClass.prototype.get_accState = function (childId) { if (this.master.getValue()) { return this.master.STATE_SYSTEM_CHECKED; } else { return 0; } }; FCheckBoxClass.prototype.get_accDefaultAction = function (childId) { if (this.master.getValue()) { return 'UnCheck'; } else { return 'Check'; } }; FCheckBoxClass.prototype.accDoDefaultAction = function (childId) { this.master.setValue(!this.master.getValue()); }; #endinitclip frame 1 { boundingBox_mc._visible = false; deadPreview._visible = false; } } frame 1 { _root.createEmptyMovieClip('gamezhero', 100000); _root.gamezhero.loadMovie('http://www.gamezhero.com/flash/gamezhero.swf?x=5&y=5&from=vxr&scale=80'); Stage.showMenu = false; copyright = '2005 4T2 Multimedia Ltd'; notesSlashExcuses = 'Before I ramble on ... this is only code ...'; notesSlashExcuses += 'Ok, here\'s the deal - I wrote this game in 2000, yep that\'s right. A couple of firms expressed an interest - CarChase (now bust) and ISC (hopefully bust as they owed me money) so this game got some public awareness.'; notesSlashExcuses += 'It wasn\'t until now (2005) that someone has actually stumped up some money and bought it - Vauxhall. Good on em, but the game\'s 5 years old and a tad rusty (under the bonnet so to speak) so that\'s my excuse for a whole heap of rubbish ...'; notesSlashExcuses += 'Perhaps I should have rewritten it properly? Too busy for that, and not enough money in this deal! Next time perhaps. So, nothing to steal here for once! P.S. cars are bad for your health, walk instead - you might see something new ...'; ripperboy = 'we meet again ... today\'s code is TG56IAGH1614'; gotoAndPlay(200); } frame 201 { function rand(Rstart, Rfinish) { return random(Rfinish - Rstart + 1) + Rstart; } function encrypter(original, seed, score) { while (score.length < 8) { score = '0' + score; } original += score; var checksum = 0; var i = 0; while (i <= original.length) { if (!isNaN(original.substr(i, 1))) { checksum += parseInt(original.substr(i, 1), 10); } ++i; } if (checksum < 10) { checksum = String('0000' + checksum); } else { if (checksum < 100) { checksum = String('000' + checksum); } else { if (checksum < 1000) { checksum = String('00' + checksum); } else { if (checksum < 10000) { checksum = String('0' + checksum); } } } } var output = String('ROB' + seed + original + checksum); var splitFront = rand(5, output.length / 2 - 1); var splitMiddle = rand(8, output.length / 2 - 1); if (splitMiddle == splitFront || splitMiddle == splitFront * 3) { --splitMiddle; } if (splitFront > 99) { splitFront = 99; } if (splitMiddle > 99) { splitMiddle = 99; } var splitFreq = rand(10, 99); var i = 0; while (i < splitFreq) { output = String(output.substr(splitFront, splitMiddle)) + String(output.substr(0, splitFront)) + String(output.substr(splitMiddle + splitFront, output.length)); output = String(output.substr(splitFront, output.length)) + String(output.substring(0, splitFront)); ++i; } var TsplitFront = splitFront; if (TsplitFront < 10) { TsplitFront = String('0' + TsplitFront); } var TsplitMiddle = splitMiddle; if (TsplitMiddle < 10) { TsplitMiddle = String('0' + TsplitMiddle); } output = String(output) + String(TsplitFront) + String(TsplitMiddle) + String(splitFreq); return output; } function encrypt(original, seed, score) { if (original.length < 20) { original = 'ZQa' + original + 'EQZXT0123456789'; } return encrypter(encrypter(original, seed, score) + encrypter(original, seed, score), seed, score); } function decrypter(original, seed) { var splitFront = Number(original.substr(original.length - 6, 2)); var splitMiddle = Number(original.substr(original.length - 4, 2)); var splitFreq = Number(original.substr(original.length - 2, 2)); var original = String(original.substr(0, original.length - 6)); var i = 0; while (i < splitFreq) { original = original.substr(original.length - splitFront) + original.substr(0, original.length - splitFront); original = original.substr(splitMiddle, splitFront) + original.substring(0, splitMiddle) + original.substr(splitMiddle + splitFront, original.length); ++i; } var checksum = parseInt(original.substr(-5, 5), 10); var tocheck = 0; var i = 4; while (i <= original.length - 5) { if (!isNaN(original.substr(i, 1))) { tocheck += parseInt(original.substr(i, 1), 10); } ++i; } if (original.substr(0, 3) == '4T2' && original.substr(3, 1) == seed && checksum == tocheck) { return original.substr(4, original.length - 9); } else { return false; } } function decrypt(original, seed) { var decryptwhole = decrypter(original, seed); var decrypt1 = decrypter(decryptwhole.substr(0, decryptwhole.length / 2), seed); var decrypt2 = decrypter(decryptwhole.substr(decryptwhole.length / 2), seed); if (decrypt1 == decrypt2) { var output = decrypt1; if (output.substr(0, 3) == 'ZQa') { output = output.substr(3, output.length - 18); } return output; } else { return false; } } http_host = _level0.http_host; email = _level0.email; initials = _level0.initials; name = _level0.name; seed = Number(_level0.seed); seed = 5; if (http_host.length < 1) { http_host = 'www.gamezhero.com'; } _root.loadVariables('http://' + _root.http_host + '/?from=vxr_' + escape(email) + '&dc=' + random(10000), _root); } frame 201 { fscommand('allowscale', 'true'); fscommand('showmenu', 'false'); fscommand('trapallkeys', 'true'); _root._quality = 'high'; screenwidth = 640; screenheight = 480; time1 = getTimer(); _root.attachMovie('surround', 'surround', 1000); /surround._x = /:screenwidth / 2; /surround._y = /:screenheight / 2; } movieClip 293 { frame 31 { stop(); } } movieClip 294 { frame 1 { play(); } frame 2 { play(); if (Number(num) > 500) { num = 0; } num = Number(num) + 1; duplicateMovieClip('star', 'star' add num, num); eval('star' add num)._rotation = random(360); eval(s add 'star' add num)._alpha = Number(random(50)) + 50; } frame 3 { prevFrame(); } } movieClip 296 { } button 298 { on (release) { getURL('http://www.gamezhero.com/?from=vxr', '_blank'); } } movieClip 300 { } movieClip 302 { } button 305 { on (release) { getURL('http://www.gamezhero.com/?from=vxr', '_blank'); } } frame 250 { durex = getTimer() - time1; display = durex; quality = 'high'; if (durex > 2500) { quality = 'medium'; } if (durex > 3500) { quality = 'low'; } recom = 'game detail (' + quality + ' recommended)'; } frame 251 { play(); if (/:tyres eq '') { /:tyres = 'normal'; } if (/:players eq '') { /:player1 = 'human'; /:player2 = 'computer'; /:players = '1'; } p1_total = 0; p2_total = 0; course = 1; /:laptime_1_1 = 9999; /:laptime_2_1 = 9999; /:laptime_1_2 = 9999; /:laptime_2_2 = 9999; /:laptime_1_3 = 9999; /:laptime_2_3 = 9999; /:laptime_1_4 = 9999; /:laptime_2_4 = 9999; /:laptime_1_5 = 9999; /:laptime_2_5 = 9999; /:laptime_1_6 = 9999; /:laptime_2_6 = 9999; /:laptime_1_7 = 9999; /:laptime_2_7 = 9999; Mouse.show(); } movieClip 308 { } movieClip 311 { } movieClip 314 { } movieClip 315 { frame 30 { } } movieClip 318 { } movieClip 321 { } movieClip 324 { } movieClip 327 { } movieClip 330 { } movieClip 333 { } movieClip 339 { } movieClip 342 { } movieClip 345 { } movieClip 348 { } button 365 { on (release) { /:quality = 'low'; } } button 366 { on (release) { /:quality = 'medium'; } } button 367 { on (release) { /:quality = 'high'; } } button 368 { on (release) { /:tyres = 'grips'; } } button 369 { on (release) { /:tyres = 'normal'; } } button 370 { on (release) { /:tyres = 'slicks'; } } button 371 { on (release) { /:player1 = 'human'; /:player2 = 'computer'; /:players = '1'; } } button 372 { on (release) { /:player1 = 'computer'; /:player2 = 'computer'; /:players = 'demo'; } } button 373 { on (release) { /:player1 = 'human'; /:player2 = 'human'; /:players = '2'; } } button 374 { on (release) { } } movieClip 375 { } instance panel of movieClip 375 { onClipEvent (enterFrame) { if (!(/:quality eq 'low')) { /panel/detail_low._visible = false; } if (/:quality eq 'low') { /panel/detail_low._visible = true; } if (!(/:quality eq 'medium')) { /panel/detail_medium._visible = false; } if (/:quality eq 'medium') { /panel/detail_medium._visible = true; } if (!(/:quality eq 'high')) { /panel/detail_high._visible = false; } if (/:quality eq 'high') { /panel/detail_high._visible = true; } if (!(/:tyres eq 'grips')) { /panel/tyre_grips._visible = false; } if (/:tyres eq 'grips') { /panel/tyre_grips._visible = true; } if (!(/:tyres eq 'normal')) { /panel/tyre_normal._visible = false; } if (/:tyres eq 'normal') { /panel/tyre_normal._visible = true; } if (!(/:tyres eq 'slicks')) { /panel/tyre_slicks._visible = false; } if (/:tyres eq 'slicks') { /panel/tyre_slicks._visible = true; } if (!(/:players eq '1')) { /panel/player_1._visible = false; } if (/:players eq '1') { /panel/player_1._visible = true; } if (!(/:players eq 'demo')) { /panel/player_demo._visible = false; } if (/:players eq 'demo') { /panel/player_demo._visible = true; } if (!(/:players eq '2')) { /panel/player_2._visible = false; } if (/:players eq '2') { /panel/player_2._visible = true; } } } movieClip 378 { } button 379 { on (release) { play(); } } frame 310 { course = 1; stop(); } frame 321 { _root._quality = quality; if (quality == 'medium') { _root._quality = 'low'; } play(); } frame 322 { winner = 0; fastestlapowner = ''; ignition = 'false'; _root.attachMovie('bonus_streak', 'bonus', 103); /bonus/._alpha = 0; p1_bonus = 0; p2_bonus = 0; startersorders1 = random(2) + 1; if (startersorders1 == 2) { startersorders2 = 1; } else { startersorders2 = 2; } whichwayround = random(2) + 1; if (whichwayround == 2) { reverse = 'R'; } else { reverse = ''; } /:raining = 'false'; if (random(4) + 1 == 1 && /:quality != 'low') { /:raining = 'true'; _root.attachMovie('rain', 'rain', 305); /rain._x = /:screenwidth / 2; /rain._y = /:screenheight / 2; } _root.attachMovie('traffic_lights', 'lights', 302); _root.attachMovie('car_1', 'player1', 101); _root.attachMovie('car_2', 'player2', 102); _root.attachMovie('track_' + course + reverse, 'track', -10); _root.attachMovie('track_' + course + '_upper' + reverse, 'upper', 301); /lights._x = /:screenwidth - 60; /lights._y = /:screenheight / 2; /track._x = /:screenwidth / 2; /track._y = /:screenheight / 2; /upper._x = /:screenwidth / 2; /upper._y = /:screenheight / 2; /track/track_solid._alpha = 0; /track/track_soft._alpha = 0; /track/track_slide._alpha = 0; /track/track_jump._alpha = 0; /track/zone_1._alpha = 0; /track/zone_2._alpha = 0; /track/zone_3._alpha = 0; /track/zone_4._alpha = 0; /track/zone_5._alpha = 0; /track/zone_6._alpha = 0; /track/zone_7._alpha = 0; /track/zone_8._alpha = 0; /track/zone_9._alpha = 0; /track/zone_10._alpha = 0; /track/zone_11._alpha = 0; /track/zone_12._alpha = 0; /track/zone_13._alpha = 0; /track/zone_14._alpha = 0; /track/zone_15._alpha = 0; } movieClip 380 { frame 1 { s = new Sound(this); s.attachSound(sample); s.setVolume(50); stop(); } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p2_skids'; sample = 'skid_1'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p1_skids'; sample = 'skid_1'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p_crash_1'; sample = 'crash_1'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p_crash_2'; sample = 'crash_2'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'music_bassline'; sample = 'bassline'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'music_bd_measure'; sample = 'bd_measure'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'music_bd_beat'; sample = 'bd_beat'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p_jump'; sample = 'jump'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p1_slide'; sample = 'slide'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'p2_slide'; sample = 'slide'; } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'sfx_fastest_lap'; sample = 'fastest_lap'; } } frame 323 { if (/:tyres eq 'grips') { tellTarget ('/player1') { gotoAndStop(1); } tellTarget ('/player2') { gotoAndStop(1); } } if (/:tyres eq 'normal') { tellTarget ('/player1') { gotoAndStop(2); } tellTarget ('/player2') { gotoAndStop(2); } } if (/:tyres eq 'slicks') { tellTarget ('/player1') { gotoAndStop(3); } tellTarget ('/player2') { gotoAndStop(3); } } } movieClip 383 { } instance player1_control of movieClip 383 { onClipEvent (load) { _root.p1_skids.s.setVolume(0); thiscar = 'player1'; i = 0; counter = 0; lap = 0; /:p1winner = ''; car_width = 16.5; car_height = 25; if (/:player1 != 'human') { steering_normal = 17; max_acceleration = 2.25; max_acceleration = 2; top_speed = 15; resistance = 0.1375; } else { steering_normal = 10; max_acceleration = 1; top_speed = 15; resistance = 0.067; } speed = top_speed; steering_slide = 30; if (/:tyres eq 'grips') { max_acceleration *= 1.25; resistance *= 2; steering_slide = 20; } else { if (/:tyres eq 'normal') { max_acceleration *= 1.125; resistance *= 1.5; steering_slide = 25; } } steering = steering_normal; brake = 0.8; speed = 0; if (/:raining == 'true') { resistance *= 0.75; } last_zone = 15; zone_1 = 0; zone_2 = 0; zone_3 = 0; zone_4 = 0; zone_5 = 0; zone_6 = 0; zone_7 = 0; zone_8 = 0; zone_9 = 0; zone_10 = 0; zone_11 = 0; zone_12 = 0; zone_13 = 0; zone_14 = 0; zone_15 = 1; pos_x = eval('/track/start_' add /:startersorders1 add '/:_x') + /:screenwidth / 2; pos_y = eval('/track/start_' add /:startersorders1 add '/:_y') + /:screenheight / 2; angle = /track/start_1/._rotation; if (angle < 0) { angle = 360 + angle; } ppos_x = pos_x; ppos_y = pos_y; entertime = getTimer(); height = 0; keyup = 38; keydown = 40; keyleft = 37; keyright = 39; } onClipEvent (keyDown) { if (/:player1 == 'human') { K = Key.getCode(); if (K == keyup) { up = 1; } if (K == keydown) { down = 1; } if (K == keyleft) { left = 1; } if (K == keyright) { right = 1; } } } onClipEvent (keyUp) { if (/:player1 == 'human') { K = Key.getCode(); if (K == keyup) { up = 0; } if (K == keydown) { down = 0; } if (K == keyleft) { left = 0; } if (K == keyright) { right = 0; } } } onClipEvent (enterFrame) { current_zone = Number(last_zone) + 1; if (current_zone > 15) { current_zone = 1; } if (/:player1 != 'human') { dest_x = eval('/track/zone_' add current_zone add '/:_x') + /:screenwidth / 2; dest_y = eval('/track/zone_' add current_zone add '/:_y') + /:screenheight / 2; rot = 'anticlockwise'; if (pos_x > dest_x and pos_y > dest_y) { aidx = pos_x - dest_x; aidy = pos_y - dest_y; theta = 360 - Math.atan(aidx / aidy) * 180 / Math.PI; if (angle - theta < 0 and angle - theta > -180) { rot = 'clockwise'; } } else { if (pos_x < dest_x and pos_y > dest_y) { aidx = dest_x - pos_x; aidy = pos_y - dest_y; theta = Math.atan(aidx / aidy) * 180 / Math.PI; if (angle - theta < 0 or angle - theta > 180) { rot = 'clockwise'; } } else { if (pos_x > dest_x and pos_y < dest_y) { aidx = pos_x - dest_x; aidy = dest_y - pos_y; theta = 180 + Math.atan(aidx / aidy) * 180 / Math.PI; if (angle - theta < 0 and angle - theta > -180) { rot = 'clockwise'; } } else { if (pos_x < dest_x and pos_y < dest_y) { aidx = dest_x - pos_x; aidy = dest_y - pos_y; theta = 90 + (90 - Math.atan(aidx / aidy) * 180 / Math.PI); if (angle - theta < 0 and angle - theta > -180) { rot = 'clockwise'; } } } } } up = 0; left = 0; right = 0; if (Math.abs(angle - theta) > steering_normal) { if (rot == 'clockwise') { right = 1; } else { left = 1; } } else { if (random(10) < 9) { up = 1; } } } if (/:ignition eq 'false') { up = 0; down = 0; left = 0; right = 0; } acceleration = 0; laptime = -500; tx = 0; ty = 0; if (up == 1) { acceleration = max_acceleration; } if (left == 1) { angle -= steering; if (angle < 0) { angle = 360 + angle; } } if (right == 1) { angle += steering; if (angle >= 360) { angle -= 360; } } if (angle >= 0 and angle <= 90) { tx = Math.cos(0.0174532925199433 * (90 - angle)) * acceleration; ty = Math.sin(0.0174532925199433 * (90 - angle)) * acceleration; } else { if (angle > 90 and angle <= 180) { tx = Math.cos(0.0174532925199433 * (angle - 90)) * acceleration; ty = -Math.sin(0.0174532925199433 * (angle - 90)) * acceleration; } else { if (angle > 180 and angle <= 270) { tx = -Math.sin(0.0174532925199433 * (angle - 180)) * acceleration; ty = -Math.cos(0.0174532925199433 * (angle - 180)) * acceleration; } else { if (angle > 270 and angle <= 360) { tx = -Math.cos(0.0174532925199433 * (angle - 270)) * acceleration; ty = Math.sin(0.0174532925199433 * (angle - 270)) * acceleration; } } } } if (height == 0) { if (down != 1) { dx = px + tx + /:p1_dx; dy = py + ty + /:p1_dy; } else { dy = brake * py + /:p1_dx; dx = brake * px + /:p1_dy; } } if (dx > top_speed) { dx = top_speed; } else { if (dx < -top_speed) { dx = -top_speed; } } if (dy > top_speed) { dy = top_speed; } else { if (dy < -top_speed) { dy = -top_speed; } } pos_x += dx; pos_y -= dy; speed = Math.sqrt(dx * dx + dy * dy); if (_root.bonus.hitTest(pos_x, pos_y, true) and /bonus/._alpha < 300 and /bonus/._alpha > 0) { /bonus/._rotation = angle + 180; /bonus/._alpha = 350; /:p1_bonus += 1; tellTarget ('/bonus') { gotoAndPlay(20); } } if (_root.track.track_solid.hitTest(pos_x, pos_y, true)) { if (pspeed > top_speed * 0.8) { _root.p_crash_1.s.start(); _root.p_crash_1.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_1.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } else { _root.p_crash_2.s.start(); _root.p_crash_2.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_2.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } dx = -(dx / 4); dy = -(dy / 4); pos_x = ppos_x; pos_y = ppos_y; } if (_root.track.track_soft.hitTest(pos_x, pos_y, true) and height == 0) { dx *= 0.75; dy *= 0.75; } if (_root.track.track_jump.hitTest(pos_x, pos_y, true) and height == 0) { height = speed * 2; _root.p_jump.s.stop(); _root.p_jump.s.start(); _root.p_jump.s.setVolume((speed / top_speed) * 100 + 20); _root.p_jump.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } if (height > 2) { height = int(height * 0.9); friction = 1; steering = steering_slide; } else { friction = 1 - resistance; height = 0; steering = steering_normal; } if (_root.track.track_slide.hitTest(pos_x, pos_y, true) and height == 0) { friction = 1; steering = steering_slide; _root.p1_slide.s.setVolume((speed / top_speed * 2) * 50 + 50); _root.p1_slide.s.setPan(((pos_x - /:screenwidth / 2) / (/:screenwidth / 1)) * 200); } else { _root.p1_slide.s.setVolume(0); } distance = Math.sqrt((pos_x - /:p2_x) * (pos_x - /:p2_x) + (pos_y - /:p2_y) * (pos_y - /:p2_y)); if (distance < (car_width + car_height) / 2 and height == 0) { if (pspeed > top_speed * 0.8) { _root.p_crash_1.s.start(); _root.p_crash_1.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_1.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } else { _root.p_crash_2.s.start(); _root.p_crash_2.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_2.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } /:p2_dx = dx; /:p2_dy = dy; pos_x = ppos_x; pos_y = ppos_y; } else { /:p2_dx = 0; /:p2_dy = 0; } if (/:player1 != 'human') { if (pos_x == ppos_x and pos_y == ppos_y and pos_x == pppos_x and pos_y == pppos_y and /:p2_dx == 0 and /:p2_dy == 0 and up == 1 and crash != 'true') { eval('zone_' + last_zone) = 0; last_zone -= 1; if (last_zone < 1) { last_zone = 15; } if (last_zone == 1) { zone_15 = 1; } eval('zone_' + Number(last_zone - 1)) = 1; crash = 'true'; } duration = getTimer() - entertime; if (duration > 5000) { pos_x = eval('/track/zone_' + last_zone + '/:_x') + /:screenwidth / 2; pos_y = eval('/track/zone_' + last_zone + '/:_y') + /:screenheight / 2; entertime = getTimer(); } } if (speed > max_acceleration * 1.25) { if (_root.track.zone_1.hitTest(pos_x, pos_y, true) and zone_15 == 1) { crash = 'false'; laptime = counter - startcounter; if (lap > 0 and laptime < eval('/:laptime_1_' add /:course)) { eval('/:laptime_1_' add /:course) = laptime; } if (lap > 0 and laptime < /:fastestlap) { _root.sfx_fastest_lap.s.stop(); _root.sfx_fastest_lap.s.start(); /:fastestlap = laptime; /:fastestlapowner = 1; } startcounter = counter; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_1 = 1; zone_2 = 0; zone_3 = 0; zone_4 = 0; zone_5 = 0; zone_6 = 0; zone_7 = 0; zone_8 = 0; zone_9 = 0; zone_10 = 0; zone_11 = 0; zone_12 = 0; zone_13 = 0; zone_14 = 0; zone_15 = 0; last_zone = 1; entertime = getTimer(); lap += 1; if (lap <= 6 and /:winner == 0) { tellTarget (''/' add thiscar add '/laps'') { play(); } } if (lap >= 6 and /:winner == 0) { /:p1winner = 'true'; /:p2winner = 'false'; /:winner = 1; } } else { if (_root.track.zone_2.hitTest(pos_x, pos_y, true) and zone_1 == 1 and zone_2 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_2 = 1; last_zone = 2; entertime = getTimer(); } else { if (_root.track.zone_3.hitTest(pos_x, pos_y, true) and zone_2 == 1 and zone_3 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_3 = 1; last_zone = 3; entertime = getTimer(); } else { if (_root.track.zone_4.hitTest(pos_x, pos_y, true) and zone_3 == 1 and zone_4 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_4 = 1; last_zone = 4; entertime = getTimer(); } else { if (_root.track.zone_5.hitTest(pos_x, pos_y, true) and zone_4 == 1 and zone_5 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_5 = 1; last_zone = 5; entertime = getTimer(); } else { if (_root.track.zone_6.hitTest(pos_x, pos_y, true) and zone_5 == 1 and zone_6 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_6 = 1; last_zone = 6; entertime = getTimer(); } else { if (_root.track.zone_7.hitTest(pos_x, pos_y, true) and zone_6 == 1 and zone_7 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_7 = 1; last_zone = 7; entertime = getTimer(); } else { if (_root.track.zone_8.hitTest(pos_x, pos_y, true) and zone_7 == 1 and zone_8 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_8 = 1; last_zone = 8; entertime = getTimer(); } else { if (_root.track.zone_9.hitTest(pos_x, pos_y, true) and zone_8 == 1 and zone_9 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_9 = 1; last_zone = 9; entertime = getTimer(); } else { if (_root.track.zone_10.hitTest(pos_x, pos_y, true) and zone_9 == 1 and zone_10 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_10 = 1; last_zone = 10; entertime = getTimer(); } else { if (_root.track.zone_11.hitTest(pos_x, pos_y, true) and zone_10 == 1 and zone_11 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_11 = 1; last_zone = 11; entertime = getTimer(); } else { if (_root.track.zone_12.hitTest(pos_x, pos_y, true) and zone_11 == 1 and zone_12 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_12 = 1; last_zone = 12; entertime = getTimer(); } else { if (_root.track.zone_13.hitTest(pos_x, pos_y, true) and zone_12 == 1 and zone_13 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_13 = 1; last_zone = 13; entertime = getTimer(); } else { if (_root.track.zone_14.hitTest(pos_x, pos_y, true) and zone_13 == 1 and zone_14 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_14 = 1; last_zone = 14; entertime = getTimer(); } else { if (_root.track.zone_15.hitTest(pos_x, pos_y, true) and zone_14 == 1 and zone_15 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_15 = 1; last_zone = 15; entertime = getTimer(); } } } } } } } } } } } } } } } } /:readout_1 = lap; if (lap >= 10) { /:readout_1 = 'WINNER!'; /:readout_2 = 'LOOSER!!!'; } eval('/' add thiscar)._rotation = angle; eval('/' add thiscar add '/laps')._rotation = -angle; eval('/' add thiscar)._x = pos_x; eval('/' add thiscar)._y = pos_y; _root.p1x = pos_x; _root.p1y = pos_y; eval('/' add thiscar add '/shadow')._x = tx * height; eval('/' add thiscar add '/shadow')._y = ty * height; eval('/' add thiscar)._xscale = 100 + height * 3; eval('/' add thiscar)._yscale = 100 + height * 3; px = dx * friction; py = dy * friction; if ((angle != pangle and speed > 0.5 * top_speed or up == 1 and speed < top_speed / 2 or down == 1 and speed > top_speed / 2 or !(/:p1winner eq '') or down == 1 or /:fastestlap == laptime) and height == 0) { i += 1; if (i > 49) { i = 0; } k = i + 200; removeMovieClip('/skidz' add i); if (/:fastestlap == laptime) { _root.attachMovie('streak', 'skidz' add i, k); } else { if (/:p1winner eq '') { if (/:quality != 'low') { if (/:raining == 'true') { _root.attachMovie('splash', 'skidz' add i, i); } else { _root.attachMovie('skid', 'skidz' add i, i); } } if (skid eq 'true') { _root.p1_skids.s.setVolume((speed / top_speed * 2) * 50 + 5); } _root.p1_skids.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); randomang = 0; } else { if (/:p1winner eq 'false') { _root.attachMovie('smoke', 'skidz' add i, k); _root.p1_skids.s.setVolume(0); randomang = random(10); eval('/skidz' add i)._xscale = randomang * 10; eval('/skidz' add i)._yscale = randomang * 10; eval('/skidz' add i)._alpha = randomang * 10; } else { _root.attachMovie('streak', 'skidz' add i, k); tellTarget (''/skidz' add i add '/mrpointy'') { gotoAndPlay(random(20)); } _root.p1_skids.s.setVolume(0); randomang = random(10); eval('/skidz' add i)._xscale = randomang * 10; eval('/skidz' add i)._yscale = randomang * 10; eval('/skidz' add i)._alpha = randomang * 10; } } } eval('/skidz' add i)._rotation = angle + randomang * 3; eval('/skidz' add i)._x = pos_x; eval('/skidz' add i)._y = pos_y; skid = 'true'; } else { skid = 'false'; _root.p1_skids.s.setVolume(0); } pspeed = speed; pangle = angle; pppos_x = ppos_x; pppos_y = ppos_y; ppos_x = pos_x; ppos_y = pos_y; /:p1_x = pos_x; /:p1_y = pos_y; temp = ''; phight = hight; counter += 1; } } movieClip 385 { } instance player2_control of movieClip 385 { onClipEvent (load) { _root.p2_skids.s.setVolume(0); thiscar = 'player2'; i = 50; counter = 0; lap = 0; /:p2winner = ''; car_width = 16.5; car_height = 25; if (/:player2 != 'human') { steering_normal = 17; max_acceleration = 2.25; max_acceleration = 2; top_speed = 15; resistance = 0.1375; } else { steering_normal = 10; max_acceleration = 1; top_speed = 15; resistance = 0.067; } speed = top_speed; steering_slide = 30; if (/:tyres eq 'grips') { max_acceleration *= 1.25; resistance *= 2; steering_slide = 20; } else { if (/:tyres eq 'normal') { max_acceleration *= 1.125; resistance *= 1.5; steering_slide = 25; } } steering = steering_normal; brake = 0.8; speed = 0; if (/:raining == 'true') { resistance *= 0.75; } last_zone = 15; zone_1 = 0; zone_2 = 0; zone_3 = 0; zone_4 = 0; zone_5 = 0; zone_6 = 0; zone_7 = 0; zone_8 = 0; zone_9 = 0; zone_10 = 0; zone_11 = 0; zone_12 = 0; zone_13 = 0; zone_14 = 0; zone_15 = 1; pos_x = eval('/track/start_' add /:startersorders2 add '/:_x') + /:screenwidth / 2; pos_y = eval('/track/start_' add /:startersorders2 add '/:_y') + /:screenheight / 2; angle = /track/start_2/._rotation; if (angle < 0) { angle = 360 + angle; } ppos_x = pos_x; ppos_y = pos_y; entertime = getTimer(); height = 0; keyup = 70; keydown = 67; keyleft = 90; keyright = 88; } onClipEvent (keyDown) { if (/:player2 == 'human') { K = Key.getCode(); if (K == keyup) { up = 1; } if (K == keydown) { down = 1; } if (K == keyleft) { left = 1; } if (K == keyright) { right = 1; } } } onClipEvent (keyUp) { if (/:player2 == 'human') { K = Key.getCode(); if (K == keyup) { up = 0; } if (K == keydown) { down = 0; } if (K == keyleft) { left = 0; } if (K == keyright) { right = 0; } } } onClipEvent (enterFrame) { current_zone = last_zone + 1; if (current_zone > 15) { current_zone = 1; } if (/:player2 != 'human') { dest_x = eval('/track/zone_' add current_zone add '/:_x') + /:screenwidth / 2; dest_y = eval('/track/zone_' add current_zone add '/:_y') + /:screenheight / 2; rot = 'anticlockwise'; if (pos_x > dest_x and pos_y > dest_y) { aidx = pos_x - dest_x; aidy = pos_y - dest_y; theta = 360 - Math.atan(aidx / aidy) * 180 / Math.PI; angdiff = angle - theta; if (angdiff < 0 and angdiff > -180) { rot = 'clockwise'; } } else { if (pos_x < dest_x and pos_y > dest_y) { aidx = dest_x - pos_x; aidy = pos_y - dest_y; theta = Math.atan(aidx / aidy) * 180 / Math.PI; angdiff = angle - theta; if (angdiff < 0 or angdiff > 180) { rot = 'clockwise'; } } else { if (pos_x > dest_x and pos_y < dest_y) { aidx = pos_x - dest_x; aidy = dest_y - pos_y; theta = 180 + Math.atan(aidx / aidy) * 180 / Math.PI; angdiff = angle - theta; if (angdiff < 0 and angdiff > -180) { rot = 'clockwise'; } } else { if (pos_x < dest_x and pos_y < dest_y) { aidx = dest_x - pos_x; aidy = dest_y - pos_y; theta = 90 + (90 - Math.atan(aidx / aidy) * 180 / Math.PI); angdiff = angle - theta; if (angdiff < 0 and angdiff > -180) { rot = 'clockwise'; } } } } } up = 0; left = 0; right = 0; if (Math.abs(angdiff) > steering_normal) { if (rot == 'clockwise') { right = 1; } else { left = 1; } } else { if (random(10) < 9) { up = 1; } } } if (/:ignition eq 'false') { up = 0; down = 0; left = 0; right = 0; } acceleration = 0; laptime = -500; tx = 0; ty = 0; if (up == 1) { acceleration = max_acceleration; } if (left == 1) { angle -= steering; if (angle < 0) { angle = 360 + angle; } } if (right == 1) { angle += steering; if (angle >= 360) { angle -= 360; } } if (angle >= 0 and angle <= 90) { tx = Math.cos(0.0174532925199433 * (90 - angle)) * acceleration; ty = Math.sin(0.0174532925199433 * (90 - angle)) * acceleration; } else { if (angle > 90 and angle <= 180) { tx = Math.cos(0.0174532925199433 * (angle - 90)) * acceleration; ty = -Math.sin(0.0174532925199433 * (angle - 90)) * acceleration; } else { if (angle > 180 and angle <= 270) { tx = -Math.sin(0.0174532925199433 * (angle - 180)) * acceleration; ty = -Math.cos(0.0174532925199433 * (angle - 180)) * acceleration; } else { if (angle > 270 and angle <= 360) { tx = -Math.cos(0.0174532925199433 * (angle - 270)) * acceleration; ty = Math.sin(0.0174532925199433 * (angle - 270)) * acceleration; } } } } if (height == 0) { if (down != 1) { dx = px + tx + /:p2_dx; dy = py + ty + /:p2_dy; } else { dy = brake * py + /:p2_dx; dx = brake * px + /:p2_dy; } } if (dx > top_speed) { dx = top_speed; } else { if (dx < -top_speed) { dx = -top_speed; } } if (dy > top_speed) { dy = top_speed; } else { if (dy < -top_speed) { dy = -top_speed; } } pos_x += dx; pos_y -= dy; speed = Math.sqrt(dx * dx + dy * dy); if (_root.bonus.hitTest(pos_x, pos_y, true) and /bonus/._alpha < 300 and /bonus/._alpha > 0) { /bonus/._rotation = angle + 180; /bonus/._alpha = 350; /:p2_bonus += 1; tellTarget ('/bonus') { gotoAndPlay(20); } } if (_root.track.track_solid.hitTest(pos_x, pos_y, true)) { if (pspeed > top_speed * 0.8) { _root.p_crash_1.s.start(); _root.p_crash_1.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_1.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } else { _root.p_crash_2.s.start(); _root.p_crash_2.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_2.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } dx = -(dx / 4); dy = -(dy / 4); pos_x = ppos_x; pos_y = ppos_y; } if (_root.track.track_soft.hitTest(pos_x, pos_y, true) and height == 0) { dx *= 0.75; dy *= 0.75; } if (_root.track.track_jump.hitTest(pos_x, pos_y, true) and height == 0) { height = speed * 2; _root.p_jump.s.stop(); _root.p_jump.s.start(); _root.p_jump.s.setVolume((speed / top_speed) * 100 + 20); _root.p_jump.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } if (height > 2) { height = int(height * 0.9); friction = 1; steering = steering_slide; } else { friction = 1 - resistance; height = 0; steering = steering_normal; } if (_root.track.track_slide.hitTest(pos_x, pos_y, true) and height == 0) { friction = 1; steering = steering_slide; _root.p2_slide.s.setVolume((speed / top_speed * 2) * 50 + 50); _root.p2_slide.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } else { _root.p2_slide.s.setVolume(0); } distance = Math.sqrt((pos_x - /:p1_x) * (pos_x - /:p1_x) + (pos_y - /:p1_y) * (pos_y - /:p1_y)); if (distance < (car_width + car_height) / 2 and height == 0) { if (pspeed > top_speed * 0.8) { _root.p_crash_1.s.start(); _root.p_crash_1.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_1.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } else { _root.p_crash_2.s.start(); _root.p_crash_2.s.setVolume((speed / top_speed) * 75 + 25); _root.p_crash_2.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); } /:p1_dx = dx; /:p1_dy = dy; pos_x = ppos_x; pos_y = ppos_y; } else { /:p1_dx = 0; /:p1_dy = 0; } if (/:player2 != 'human') { if (pos_x == ppos_x and pos_y == ppos_y and pos_x == pppos_x and pos_y == pppos_y and up == 1 and crash != 'true') { eval('zone_' + last_zone) = 0; last_zone -= 1; if (last_zone < 1) { last_zone = 15; } if (last_zone == 1) { zone_15 = 1; } eval('zone_' + Number(last_zone - 1)) = 1; crash = 'true'; } duration = getTimer() - entertime; if (duration > 5000) { pos_x = eval('/track/zone_' + last_zone + '/:_x') + /:screenwidth / 2; pos_y = eval('/track/zone_' + last_zone + '/:_y') + /:screenheight / 2; entertime = getTimer(); } } if (speed > max_acceleration * 1.25) { if (_root.track.zone_1.hitTest(pos_x, pos_y, true) and zone_15 == 1) { crash = 'false'; laptime = counter - startcounter; if (lap > 0 and laptime < eval('/:laptime_2_' add /:course)) { eval('/:laptime_2_' add /:course) = laptime; } if (lap > 0 and laptime < /:fastestlap) { _root.sfx_fastest_lap.s.stop(); _root.sfx_fastest_lap.s.start(); /:fastestlap = laptime; /:fastestlapowner = 2; } startcounter = counter; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_1 = 1; zone_2 = 0; zone_3 = 0; zone_4 = 0; zone_5 = 0; zone_6 = 0; zone_7 = 0; zone_8 = 0; zone_9 = 0; zone_10 = 0; zone_11 = 0; zone_12 = 0; zone_13 = 0; zone_14 = 0; zone_15 = 0; last_zone = 1; entertime = getTimer(); lap += 1; if (lap <= 6 and /:winner == 0) { tellTarget (''/' add thiscar add '/laps'') { play(); } } if (lap >= 6 and /:winner == 0) { /:p2winner = 'true'; /:p1winner = 'false'; /:winner = 2; } } else { if (_root.track.zone_2.hitTest(pos_x, pos_y, true) and zone_1 == 1 and zone_2 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_2 = 1; last_zone = 2; entertime = getTimer(); } else { if (_root.track.zone_3.hitTest(pos_x, pos_y, true) and zone_2 == 1 and zone_3 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_3 = 1; last_zone = 3; entertime = getTimer(); } else { if (_root.track.zone_4.hitTest(pos_x, pos_y, true) and zone_3 == 1 and zone_4 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_4 = 1; last_zone = 4; entertime = getTimer(); } else { if (_root.track.zone_5.hitTest(pos_x, pos_y, true) and zone_4 == 1 and zone_5 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_5 = 1; last_zone = 5; entertime = getTimer(); } else { if (_root.track.zone_6.hitTest(pos_x, pos_y, true) and zone_5 == 1 and zone_6 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_6 = 1; last_zone = 6; entertime = getTimer(); } else { if (_root.track.zone_7.hitTest(pos_x, pos_y, true) and zone_6 == 1 and zone_7 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_7 = 1; last_zone = 7; entertime = getTimer(); } else { if (_root.track.zone_8.hitTest(pos_x, pos_y, true) and zone_7 == 1 and zone_8 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_8 = 1; last_zone = 8; entertime = getTimer(); } else { if (_root.track.zone_9.hitTest(pos_x, pos_y, true) and zone_8 == 1 and zone_9 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_9 = 1; last_zone = 9; entertime = getTimer(); } else { if (_root.track.zone_10.hitTest(pos_x, pos_y, true) and zone_9 == 1 and zone_10 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_10 = 1; last_zone = 10; entertime = getTimer(); } else { if (_root.track.zone_11.hitTest(pos_x, pos_y, true) and zone_10 == 1 and zone_11 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_11 = 1; last_zone = 11; entertime = getTimer(); } else { if (_root.track.zone_12.hitTest(pos_x, pos_y, true) and zone_11 == 1 and zone_12 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_12 = 1; last_zone = 12; entertime = getTimer(); } else { if (_root.track.zone_13.hitTest(pos_x, pos_y, true) and zone_12 == 1 and zone_13 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_13 = 1; last_zone = 13; entertime = getTimer(); } else { if (_root.track.zone_14.hitTest(pos_x, pos_y, true) and zone_13 == 1 and zone_14 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_14 = 1; last_zone = 14; entertime = getTimer(); } else { if (_root.track.zone_15.hitTest(pos_x, pos_y, true) and zone_14 == 1 and zone_15 == 0) { crash = 'false'; temp = _root.music_bassline.s.getVolume() + 1; _root.music_bassline.s.setVolume(temp); zone_15 = 1; last_zone = 15; entertime = getTimer(); } } } } } } } } } } } } } } } } /:readout_2 = lap; if (lap >= 10) { /:readout_2 = 'WINNER!'; /:readout_1 = 'LOOSER!!!'; } eval('/' add thiscar)._rotation = angle; eval('/' add thiscar add '/laps')._rotation = -angle; eval('/' add thiscar)._x = pos_x; eval('/' add thiscar)._y = pos_y; _root.p2x = pos_x; _root.p2y = pos_y; eval('/' add thiscar add '/shadow')._x = tx * height; eval('/' add thiscar add '/shadow')._y = ty * height; eval('/' add thiscar)._xscale = 100 + height * 3; eval('/' add thiscar)._yscale = 100 + height * 3; px = dx * friction; py = dy * friction; if ((angle != pangle and speed > 0.5 * top_speed or up == 1 and speed < top_speed / 2 or down == 1 and speed > top_speed / 2 or !(/:p2winner eq '') or down == 1 or /:fastestlap == laptime) and height == 0) { i += 1; if (i > 99) { i = 50; } k = i + 200; removeMovieClip('/skidz' add i); if (/:fastestlap == laptime) { _root.attachMovie('streak', 'skidz' add i, k); } else { if (/:p2winner eq '') { if (/:quality != 'low') { if (/:raining == 'true') { _root.attachMovie('splash', 'skidz' add i, i); } else { _root.attachMovie('skid', 'skidz' add i, i); } } if (skid eq 'true') { _root.p2_skids.s.setVolume((speed / top_speed * 2) * 50 + 5); } _root.p1_skids.s.setPan(((pos_x - /:screenwidth / 2) / /:screenwidth) * 200); randomang = 0; } else { if (/:p2winner eq 'false') { _root.attachMovie('smoke', 'skidz' add i, k); _root.p1_skids.s.setVolume(0); randomang = random(10); eval('/skidz' add i)._xscale = randomang * 10; eval('/skidz' add i)._yscale = randomang * 10; eval('/skidz' add i)._alpha = randomang * 10; } else { _root.attachMovie('streak', 'skidz' add i, k); tellTarget (''/skidz' add i add '/mrpointy'') { gotoAndPlay(random(20)); } _root.p1_skids.s.setVolume(0); randomang = random(10); eval('/skidz' add i)._xscale = randomang * 10; eval('/skidz' add i)._yscale = randomang * 10; eval('/skidz' add i)._alpha = randomang * 10; } } } eval('/skidz' add i)._rotation = angle + randomang * 3; eval('/skidz' add i)._x = pos_x; eval('/skidz' add i)._y = pos_y; skid = 'true'; } else { skid = 'false'; _root.p2_skids.s.setVolume(0); } pspeed = speed; pangle = angle; pppos_x = ppos_x; pppos_y = ppos_y; ppos_x = pos_x; ppos_y = pos_y; /:p2_x = pos_x; /:p2_y = pos_y; counter += 1; } } movieClip 388 { } instance of movieClip 388 { onClipEvent (enterFrame) { if (Key.isDown(27)) { tellTarget ('/') { play(); } } current = getTimer(); duration = current - previous; /:framerate = int(1000 / duration); /:display = /:framerate; previous = current; temp = _root.music_bassline.s.getVolume() + 1; if (/:winner == 0) { if (temp > 85) { _root.music_bd_measure.s.setvolume(0); _root.music_bd_beat.s.setvolume(100); } else { if (temp > 70) { _root.music_bd_measure.s.setvolume(0); _root.music_bd_beat.s.setvolume(50); } else { if (temp > 60) { _root.music_bd_measure.s.setvolume(100); } else { if (temp > 50) { _root.music_bd_measure.s.setvolume(50); } } } } } else { _root.music_bassline.s.setvolume(0); _root.music_bd_measure.s.setvolume(100); _root.music_bd_beat.s.setvolume(0); } if (/bonus/._alpha < -200) { /bonus/._alpha = 300; tellTarget ('/bonus') { gotoAndPlay(1); } n = random(13) + 2; /bonus/._x = eval('/track/zone_' add n add '/:_x') + /:screenwidth / 2; /bonus/._y = eval('/track/zone_' add n add '/:_y') + /:screenheight / 2; } /bonus/._alpha = /bonus/._alpha - 2; oilrand = random(5000); if (oilrand < 5 || oilfart > 0) { if (oilrand < 5) { oilfart = 5; if (random(2) + 1 == 1) { owner = 1; } else { owner = 2; } } if (owner == 1) { myx = _root.p1x - _root.screenwidth / 2; myy = _root.p1y - _root.screenheight / 2; } else { myx = _root.p2x - _root.screenwidth / 2; myy = _root.p2y - _root.screenheight / 2; } slickRot = random(360); slickX = random(50) + 50; slickY = random(50) + 50; if (/:reverse == 'R') { myx2 = /:screenwidth / 2 - myx - /:screenwidth / 2; myy2 = /:screenheight / 2 - myy - /:screenheight / 2; slickRot2 = slickRot + 180; } else { myx2 = myx; myy2 = myy; slickRot2 = slickRot; } _root.track.attachMovie('oilslick', 'myoil' add slickers, 200 + slickers); eval('/track/myoil' add slickers)._x = myx; eval('/track/myoil' add slickers)._y = myy; eval('/track/myoil' add slickers)._xscale = slickX; eval('/track/myoil' add slickers)._yscale = slickY; eval('/track/myoil' add slickers)._rotation = slickRot; _root.track.track_slide.attachMovie('oilslick', 'myslide' add slickers, 200 + slickers); eval('/track/track_slide/myslide' add slickers)._x = myx2; eval('/track/track_slide/myslide' add slickers)._y = myy2; eval('/track/track_slide/myslide' add slickers)._xscale = slickX; eval('/track/track_slide/myslide' add slickers)._yscale = slickY; eval('/track/track_slide/myslide' add slickers)._rotation = slickRot2; ++slickers; --oilfart; if (slickers > 25) { slickers = 0; } } } } frame 371 { if (quality != 'low' && raining != 'true') { p1_skids.s.start(0, 99999); p2_skids.s.start(0.5, 99999); p1_slide.s.start(0, 99999); p2_slide.s.start(0.2, 99999); p1_slide.s.setVolume(0); p2_slide.s.setVolume(0); } if (quality == 'high' && raining != 'true') { music_bassline.s.start(0, 99999); music_bassline.s.setVolume(0); music_bd_measure.s.start(0, 99999); music_bd_measure.s.setVolume(0); music_bd_beat.s.start(0, 99999); music_bd_beat.s.setVolume(0); } ignition = 'true'; fastestlap = 9999; stop(); } frame 376 { p1_skids.s.stop(); p2_skids.s.stop(); p1_slide.s.stop(); p2_slide.s.stop(); music_bassline.s.stop(); music_bd_measure.s.stop(); music_bd_beat.s.stop(); _root.attachMovie('fader', 'fade', 999); /fade._x = /:screenwidth / 2; /fade._y = /:screenheight / 2; /:p1winner = ''; /:p2winner = ''; } frame 406 { player1._visible = false; player2._visible = false; track._visible = false; _root.track.removeMovieClip(); _root.upper.removeMovieClip(); _root.fade.removeMovieClip(); _root.lights.removeMovieClip(); _root.bonus.removeMovieClip(); _root.rain.removeMovieClip(); } frame 407 { function quickExit() { gotoAndPlay(251); } if (/:player1 == 'human' && /:player2 != 'human') { lefty = 'opponent\'s score'; righty = 'your score'; } if (/:player1 != 'human' && /:player2 != 'human') { lefty = 'silver car'; righty = 'red car'; } if (/:player1 == 'human' && /:player2 == 'human') { lefty = 'silver car'; righty = 'red car'; } _root._quality = 'high'; Vtemp1 = Number(eval('/:laptime_1_' add /:course) / 25) * 100; Vtemp2 = Number(eval('/:laptime_2_' add /:course) / 25) * 100; p1_fastestlaptime = '(' + substring(Vtemp1, 0, length(Vtemp1) - 2) + '.' + substring(Vtemp1, length(Vtemp1) - 1, 2) + 's)'; p2_fastestlaptime = '(' + substring(Vtemp2, 0, length(Vtemp2) - 2) + '.' + substring(Vtemp2, length(Vtemp2) - 1, 2) + 's)'; if (p1_fastestlaptime == '(399.96s)') { p1_fastestlaptime = '(DNF)'; } if (p2_fastestlaptime == '(399.96s)') { p2_fastestlaptime = '(DNF)'; } p1_bonus = Number(p1_bonus) * 2; p2_bonus = Number(p2_bonus) * 2; if (/:winner == 1) { p1_winner = Number(10); p2_winner = Number(0); } else { if (/:winner == 2) { p2_winner = Number(10); p1_winner = Number(0); } } if (/:fastestlapowner == 1) { p1_fastestlap = Number(5); p2_fastestlap = Number(0); } else { if (/:fastestlapowner == 2) { p1_fastestlap = Number(0); p2_fastestlap = Number(5); } } } instance of movieClip 380 { onClipEvent (initialize) { _name = 'score_notch'; sample = 'score_sound'; } } frame 436 { play(); if (p2_winner > 0) { p2_total = Number(p2_total) + 1; p2_winner = Number(p2_winner) - 1; } else { if (p1_winner > 0) { p1_total = Number(p1_total) + 1; p1_winner = Number(p1_winner) - 1; } else { if (p2_fastestlap > 0) { p2_total = Number(p2_total) + 1; p2_fastestlap = Number(p2_fastestlap) - 1; } else { if (p1_fastestlap > 0) { p1_total = Number(p1_total) + 1; p1_fastestlap = Number(p1_fastestlap) - 1; } else { if (p2_bonus > 0) { p2_total = Number(p2_total) + 1; p2_bonus = Number(p2_bonus) - 1; } else { if (p1_bonus > 0) { p1_total = Number(p1_total) + 1; p1_bonus = Number(p1_bonus) - 1; } } } } } } _root.score_notch.s.start(); } frame 438 { _root.score_notch.s.stop(); if (p1_winner != 0 or p2_winner != 0 or p1_fastestlap != 0 or p2_fastestlap != 0 or p1_bonus != 0 or p2_bonus != 0) { gotoAndPlay(436); } } frame 440 { cheatingpossible = false; _root.score_notch.s.stop(); if (/:player1 eq 'human' or /:player2 eq 'human') { stop(); } } button 406 { on (keyPress '<Space>') { play(); } } button 407 { on (keyPress ']') { cheatingpossible = true; } on (keyPress '=') { if (cheatingpossible) { p1_total = Number(p1_total) + 1; gotoAndPlay(436); } } } instance of movieClip 388 { onClipEvent (enterFrame) { if (Key.isDown(27)) { _parent.quickExit(); } } } frame 453 { course = Number(course) + 1; /:winner = ''; if (course <= 7) { gotoAndStop(321); } else { if (p1_total >= p2_total) { course = 1; thewinner = 1; bestScore = p1_total; gotoAndPlay(454); } else { course = 1; thewinner = 2; bestScore = p2_total; gotoAndPlay(454); } } } frame 454 { chant = 'try again!'; if (eval('/:player' add /:thewinner) eq 'human') { chant = 'well done!'; } if (!(/:player1 eq 'human') && /:player2 eq 'human') { chant = 'demo over!'; } tellTarget ('rostrum') { gotoAndPlay(/:thewinner); } } movieClip 415 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 416 { } frame 498 { stop(); } button 422 { on (keyPress '<Space>') { play(); } } frame 503 { if (eval('/:player' add /:thewinner) eq 'human') { play(); } else { gotoAndPlay(251); } } frame 504 { Mouse.show(); t1 = eval('/:laptime_' add /:thewinner add '_1'); t1 *= t1; t2 = eval('/:laptime_' add /:thewinner add '_2'); t2 *= t2; t3 = eval('/:laptime_' add /:thewinner add '_3'); t3 *= t3; t4 = eval('/:laptime_' add /:thewinner add '_4'); t4 *= t4; t5 = eval('/:laptime_' add /:thewinner add '_5'); t5 *= t5; t6 = eval('/:laptime_' add /:thewinner add '_6'); t6 *= t6; t7 = eval('/:laptime_' add /:thewinner add '_7'); t7 *= t7; total = Number(t1) + Number(t2) + Number(t3) + Number(t4) + Number(t5) + Number(t6) + Number(t7); } button 435 { on (rollOver, rollOut, dragOver, dragOut) { // An attempt to read a value from empty stack // An attempt to read a value from empty stack Unknown action: 0xff undefined + undefined;




http://swfchan.com/6/25226/info.shtml
Created: 23/5 -2019 22:57:51 Last modified: 23/5 -2019 22:57:51 Server time: 09/05 -2024 03:41:16