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

A
Very
Merry Christmas!


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

Race Master.swf

This is the info page for
Flash #54301

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


Text
LOADING

LOADING.

LOADING..

LOADING...

LOADING...

/

LOADING

K

RACE

MASTER

Race around the track in this time trial game of fun and skill. Remember to stay on the road; Your lap won't be counted if you go off on those tight corners!

<p align="right"><font face="_sans" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">CONTROLS</font></p><p align="right"><font face="_sans" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0"> SPACE : HANDBRAKE </font></p><p align="right"><font face="_sans" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">ARROW KEYS : LEFT RIGHT THROTTLE REVERSE</font></p><p align="right"></p>

PLAY!

PLAY!

00

00

00

00

LAP 01

LAP 02

LAP 03

TIME

3

2

1

GO!

REPLAY

RACE COMPLETED!

TOTAL TIME

BEST LAP

ActionScript [AS1/AS2]

Frame 1
Loading = getBytesLoaded(); Total = getBytesTotal(); _root.loaded = Math.round(loading / 1000); _root.totalk = Math.round(Total / 1000); if (loading >= Total) { gotoAndStop (3); }
Frame 2
gotoAndPlay (1);
Frame 3
stopAllSounds(); stop();
Frame 4
stop(); mbenneyTimer = function () { this.reset(); }; mT = mbenneyTimer.prototype; mT.reset = function () { var _local1 = this; _local1.oldTime = 0; _local1.pause = true; _local1.totalTime = 0; }; mT.stop = function () { var _local1 = this; if (!_local1.pause) { _local1.pause = true; _local1.totalTime = _local1.totalTime + (getTimer() - _local1.oldTime); } }; mT.start = function () { var _local1 = this; if (_local1.pause) { _local1.pause = false; _local1.oldTime = getTimer(); } }; mT.getMili = function () { var _local2 = this; var _local1 = _local2.totalTime; if (!_local2.pause) { _local1 = _local1 + (getTimer() - _local2.oldTime); } return(_local1); }; mT.getSecs = function () { var _local2 = this; var _local1 = _local2.totalTime / 1000; if (!_local2.pause) { _local1 = _local1 + ((getTimer() - _local2.oldTime) / 1000); } return(Math.round(_local1)); }; mT.getMins = function () { var _local2 = this; var _local1 = _local2.totalTime / 1000; if (!_local2.pause) { _local1 = _local1 + (((getTimer() - _local2.oldTime) / 1000) / 60); } return(Math.round(_local1)); }; mT.getCount = function (secs) { var _local2 = this; var _local1 = _local2.totalTime; if (!_local2.pause) { _local1 = _local1 + ((getTimer() - _local2.oldTime) / 1000); } var _local3 = secs - _local1; return(Math.round(_local3)); };
Instance of Symbol 43 MovieClip "car" in Frame 4
onClipEvent (load) { track_x = 100; track_y = -818; this._x = Stage.Width / 2; this._y = Stage.Height / 2; angle = 1.5609317684435; _rotation = ((angle * 180) / Math.PI); _root.track._x = track_x; _root.track._y = track_y; _root.lap1 = ""; _root.lap2 = ""; _root.lap3 = ""; _root.timer = ""; }
Frame 5
stop();
Instance of Symbol 43 MovieClip "car" in Frame 5
onClipEvent (load) { function getPos(clip) { var _local1 = {x:0, y:0}; clip.localToGlobal(_local1); return(_local1); } function two(x) { return(((x > 9) ? "" : "0") + x); } function three(x) { var _local1 = x; return((((_local1 > 99) ? "" : "0") + ((_local1 > 9) ? "" : "0")) + _local1); } function displaytime(ms) { var _local2 = Math.floor(ms / 1000); ms = ms % 1000; var _local1 = three(ms); var _local3 = Math.floor(_local2 / 60); _local2 = _local2 % 60; _local1 = (two(_local2) + ":") + _local1; var hr = Math.floor(_local3 / 60); _local3 = _local3 % 60; _local1 = (two(_local3) + ":") + _local1; return(_local1); } function skid(Handbrakey) { var _local2 = this; var _local3 = _root.track.attachMovie("skidmark", "skidleft" + skids, skids); var _local1 = 0; while (_local1 < _local2.displaywheels) { wheelsPos[_local1] = getPos(_local2["w" + _local1]); if (handbrakey) { _local3.lineStyle(4, 0, 70); _local3.moveto(_local2.wheelsPos[_local1].x - track_x, _local2.wheelsPos[_local1].y - track_y); _local3.lineTo(_local2.lastpos[_local1].x, _local2.lastpos[_local1].y); } else { _local3.lineStyle(3, 0, 50); _local3.moveto(_local2.wheelsPos[_local1].x - track_x, _local2.wheelsPos[_local1].y - track_y); _local3.lineTo(_local2.lastpos[_local1].x, _local2.lastpos[_local1].y); } lastpos[_local1].x = _local2.wheelsPos[_local1].x - track_x; lastpos[_local1].y = _local2.wheelsPos[_local1].y - track_y; skids++; _local1++; } return(true); } function setLastpos() { var _local2 = this; var _local1 = 0; while (_local1 < _local2.displaywheels) { _local2.wheelsPos[_local1] = getPos(_local2["w" + _local1]); lastpos[_local1].x = _local2.wheelsPos[_local1].x - track_x; lastpos[_local1].y = _local2.wheelsPos[_local1].y - track_y; _local1++; } } function adjust(v, threshold, maximum) { vx = 0; if (v <= threshold) { vx = (v / threshold) * 1; } else { vx = 1; } return(vx); } accel = 0.2; steer = 0.08; steer_normal = 0.08; steer_handbrake = 0.099; steer_threshold = 4; MINspd = -5; MAXspd = 22; MAXskiddisplay = 2; MAXturnSpd = 10; MaxTurnSkid = 18; deccel = 0.92; handbrake = 0.93; handbrake_traction = 20; drift = 0.98; speed = 0; surface = 3; traction = 5; traction_max = 1; vector = [0, 0]; bounceBack = 0.6; laptimes = new Array(); laps = 3; var i = 1; while (i <= laps) { laptimes[i] = 0; i++; } checkpoints = new Array(); checks = 4; var i = 0; while (i <= checks) { checkpoints[i] = false; i++; } lap = 0; collide = false; track_x = 100; track_y = -818; this._x = Stage.Width / 2; this._y = Stage.Height / 2; angle = 1.5609317684435; _rotation = ((angle * 180) / Math.PI); myTimer = new _root.mbenneyTimer(); displaywheels = 2; wheelsPos = new Array(); lastPos = new Array(); var i = 0; while (i < displaywheels) { wheelsPos[i] = getPos(this["w" + i]); lastPos[i] = wheelspos[i]; i++; } skidding = false; turnskidding = false; skids = 1; myTimer.start(); } onClipEvent (enterFrame) { _rotation = ((angle * 180) / Math.PI); _root.track._x = track_x; _root.track._y = track_y; UD = Key.isDown(38) - Key.isDown(40); LR = Key.isDown(39) - Key.isDown(37); HAND = Key.isDown(32); if (LR) { angle = angle + ((LR * steer) * adjust(Math.Abs(speed), steer_threshold, MAXSpd)); if (speed > maxturnskid) { if (!turnskidding) { setLastpos(); } turnskidding = skid(HAND); } else { turnskidding = false; } } else { turnskidding = false; } if (!UD) { speed = speed * drift; } else if (UD & (!HAND)) { speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd); } if (Math.abs(speed) < (accel / 2)) { speed = 0; } if (HAND) { speed = speed * handbrake; if (speed > MAXskiddisplay) { steer = steer_handbrake; if (!skidding) { setLastpos(); } skidding = skid(HAND); } traction = handbrake_traction / surface; } else { skidding = false; traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface)); steer = steer_normal; } if (speed < 0) { traction = 1; } var frontpos = new Array(); var i = 0; while (i < this.displaywheels) { this.frontpos[i] = getPos(this["f" + i]); i++; } if (_root.track.crunchers.hittest(frontpos[0].x, frontpos[0].y, true) & (!collide)) { speed = (-speed) * bounceback; vector[0] = -vector[0]; vector[1] = -vector[1]; collide = true; } else if (_root.track.crunchers.hittest(frontpos[1].x, frontpos[1].y, true) & (!collide)) { speed = (-speed) * bounceback; vector[0] = -vector[0]; vector[1] = -vector[1]; collide = true; } else { collide = false; } track_x = track_x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction))); track_y = track_y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction))); _root.timer = displaytime(myTimer.getMili()); _root.speedHand._rotation = Math.max(-11, Math.Abs(speed * 8.5)); if (_root.track.check1.hittest(_x, _y, true)) { checkpoints[1] = true; } if (_root.track.check2.hittest(_x, _y, true)) { checkpoints[2] = true; } if (_root.track.check3.hittest(_x, _y, true)) { checkpoints[3] = true; } if (_root.track.check4.hittest(_x, _y, true)) { checkpoints[4] = true; } if (_root.track.check0.hittest(_x, _y, true)) { if (((checkpoints[1] & checkpoints[2]) & checkpoints[3]) & checkpoints[4]) { lap++; if (lap == 1) { laptimes[1] = myTimer.getMili(); _root.lap1 = displaytime(laptimes[1]); } else if (lap == 2) { laptimes[2] = myTimer.getMili() - laptimes[1]; _root.lap2 = displaytime(laptimes[2]); } else if (lap == 3) { laptimes[3] = (myTimer.getMili() - laptimes[2]) - laptimes[1]; _root.lap3 = displaytime(laptimes[3]); } var i = 0; while (i <= checks) { checkpoints[i] = false; i++; } if (lap >= laps) { mytimer.stop(); _root.racetimer = myTimer.getMili(); _root.bestlaptime = Math.Min(laptimes[1], Math.Min(laptimes[2], laptimes[3])); _root.gotoandstop(6); } } } }
Frame 6
function two(x) { return(((x > 9) ? "" : "0") + x); } function three(x) { var _local1 = x; return((((_local1 > 99) ? "" : "0") + ((_local1 > 9) ? "" : "0")) + _local1); } function displaytime(ms) { var _local2 = Math.floor(ms / 1000); ms = ms % 1000; var _local1 = three(ms); var _local3 = Math.floor(_local2 / 60); _local2 = _local2 % 60; _local1 = (two(_local2) + ":") + _local1; var hr = Math.floor(_local3 / 60); _local3 = _local3 % 60; _local1 = (two(_local3) + ":") + _local1; return(_local1); } _root.totalrace = displaytime(_root.racetimer); _root.bestlap = displaytime(_root.bestlaptime); stop();
Symbol 10 Button
on (release) { getURL ("http://www.freewebs.com/chindamo", "_blank"); }
Symbol 27 Button
on (release) { this.gotoAndPlay("4"); }
Symbol 33 MovieClip Frame 1
this.track._visible = false; this.crunchers._visible = false; this.check0._visible = false; this.check1._visible = false; this.check2._visible = false; this.check3._visible = false; this.check4._visible = false; stop();
Symbol 43 MovieClip Frame 1
fscommand ("allowscale", "false");
Symbol 60 MovieClip Frame 75
_root.gotoandplay(5); this.movieclipremove();
Symbol 66 Button
on (release) { gotoAndStop (4); stopAllSounds(); }

Library Items

Symbol 1 FontUsed by:2 3 4 5 6 16 17 23 44 45 46 47
Symbol 2 EditableTextUses:1Used by:7
Symbol 3 EditableTextUses:1Used by:7
Symbol 4 EditableTextUses:1Used by:7
Symbol 5 EditableTextUses:1Used by:7
Symbol 6 EditableTextUses:1Used by:7
Symbol 7 MovieClipUses:2 3 4 5 6Used by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 9 GraphicUsed by:10
Symbol 10 ButtonUses:9Used by:Timeline
Symbol 11 GraphicUsed by:Timeline
Symbol 12 FontUsed by:13 14 15 18 19 24 26 48 49 50 51 52 54 56 58 64 67 68 69 70 71
Symbol 13 EditableTextUses:12Used by:Timeline
Symbol 14 EditableTextUses:12Used by:Timeline
Symbol 15 EditableTextUses:12Used by:Timeline
Symbol 16 EditableTextUses:1Used by:Timeline
Symbol 17 EditableTextUses:1Used by:Timeline
Symbol 18 EditableTextUses:12Used by:Timeline
Symbol 19 EditableTextUses:12Used by:Timeline
Symbol 20 FontUsed by:21
Symbol 21 EditableTextUses:20Used by:Timeline
Symbol 22 SoundUsed by:Timeline
Symbol 23 EditableTextUses:1Used by:Timeline
Symbol 24 EditableTextUses:12Used by:27
Symbol 25 GraphicUsed by:27
Symbol 26 EditableTextUses:12Used by:27
Symbol 27 ButtonUses:24 25 26Used by:Timeline
Symbol 28 GraphicUsed by:33
Symbol 29 GraphicUsed by:33
Symbol 30 GraphicUsed by:33
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33
Symbol 33 MovieClipUses:28 29 30 32Used by:Timeline
Symbol 34 ShapeTweeningUsed by:43
Symbol 35 GraphicUsed by:43
Symbol 36 MovieClipUsed by:43
Symbol 37 MovieClipUsed by:43
Symbol 38 GraphicUsed by:43
Symbol 39 ShapeTweeningUsed by:43
Symbol 40 ShapeTweeningUsed by:43
Symbol 41 ShapeTweeningUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:34 35 36 37 38 39 40 41 42Used by:Timeline
Symbol 44 EditableTextUses:1Used by:Timeline
Symbol 45 EditableTextUses:1Used by:Timeline
Symbol 46 EditableTextUses:1Used by:Timeline
Symbol 47 EditableTextUses:1Used by:Timeline
Symbol 48 EditableTextUses:12Used by:Timeline
Symbol 49 EditableTextUses:12Used by:Timeline
Symbol 50 EditableTextUses:12Used by:Timeline
Symbol 51 EditableTextUses:12Used by:Timeline
Symbol 52 EditableTextUses:12Used by:53
Symbol 53 MovieClipUses:52Used by:60
Symbol 54 EditableTextUses:12Used by:55
Symbol 55 MovieClipUses:54Used by:60
Symbol 56 EditableTextUses:12Used by:57
Symbol 57 MovieClipUses:56Used by:60
Symbol 58 EditableTextUses:12Used by:59
Symbol 59 MovieClipUses:58Used by:60
Symbol 60 MovieClipUses:53 55 57 59Used by:Timeline
Symbol 61 SoundUsed by:Timeline
Symbol 62 GraphicUsed by:63 66
Symbol 63 MovieClipUses:62Used by:66  Timeline
Symbol 64 EditableTextUses:12Used by:66
Symbol 65 GraphicUsed by:66
Symbol 66 ButtonUses:63 64 62 65Used by:Timeline
Symbol 67 EditableTextUses:12Used by:Timeline
Symbol 68 EditableTextUses:12Used by:Timeline
Symbol 69 EditableTextUses:12Used by:Timeline
Symbol 70 EditableTextUses:12Used by:Timeline
Symbol 71 EditableTextUses:12Used by:Timeline
Symbol 72 SoundUsed by:Timeline

Instance Names

"track"Frame 4Symbol 33 MovieClip
"car"Frame 4Symbol 43 MovieClip
"car"Frame 5Symbol 43 MovieClip
"replay"Frame 6Symbol 66 Button
"check0"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check0"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check0"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check1"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check2"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check3"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"check4"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"w1"Symbol 43 MovieClip Frame 1Symbol 36 MovieClip
"w0"Symbol 43 MovieClip Frame 1Symbol 37 MovieClip
"f1"Symbol 43 MovieClip Frame 1Symbol 36 MovieClip
"f0"Symbol 43 MovieClip Frame 1Symbol 37 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Dynamic Text Variables

loadedSymbol 13 EditableText""
totalkSymbol 15 EditableText""
lap1Symbol 44 EditableText"00"
lap2Symbol 45 EditableText"00"
lap3Symbol 46 EditableText"00"
timerSymbol 47 EditableText"00"
totalraceSymbol 70 EditableText""
bestlapSymbol 71 EditableText""




http://swfchan.com/11/54301/info.shtml
Created: 21/4 -2019 20:09:26 Last modified: 21/4 -2019 20:09:26 Server time: 23/12 -2024 00:06:09