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

swfchan turned sixteen years old yesterday! (5may2024)

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

racing-test-master.swf

This is the info page for
Flash #110234

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


Text
Racing Test Master

Ognilab.com

Ready

Set

Go!!

Current Lap:

Best Lap:

Total Time:

00.00.00

00.00.00

000000

Play Again

Race Over

Total Time:

00.00.00

ActionScript [AS1/AS2]

Frame 1
stop(); car1.code = "player"; totalLaps = 10; acceleration = 0.4; speedDecay = 0.96; rotationStep = 10; maxSpeed = 10; backSpeed = 1; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = "1/10"; function step(who) { if (_root["car" + who].code == "player") { if (this["speed" + who] > 0.3) { this["speed" + who] = this["speed" + who] * _root.speedDecay; } else { this["speed" + who] = 0; } if (Key.isDown(38) && (this["speed" + who] < _root.maxSpeed)) { this["speed" + who] = this["speed" + who] + _root.acceleration; } if (Key.isDown(40)) { this["speed" + who] = this["speed" + who] - _root.backSpeed; } if (Key.isDown(37) && (Math.abs(this["speed" + who]) > 0.3)) { _root["car" + who]._rotation = _root["car" + who]._rotation - (_root.rotationStep * (this["speed" + who] / _root.maxSpeed)); } if (Key.isDown(39) && (Math.abs(this["speed" + who]) > 0.3)) { _root["car" + who]._rotation = _root["car" + who]._rotation + (_root.rotationStep * (this["speed" + who] / _root.maxSpeed)); } this["rotation" + who] = _root["car" + who]._rotation; this["speedx" + who] = Math.sin(this["rotation" + who] * (Math.PI/180)) * this["speed" + who]; this["speedy" + who] = (Math.cos(this["rotation" + who] * (Math.PI/180)) * this["speed" + who]) * -1; _root["car" + who]._x = _root["car" + who]._x + this["speedx" + who]; _root["car" + who]._y = _root["car" + who]._y + this["speedy" + who]; _root["car" + who].pointLeft = {x:-20, y:0}; _root["car" + who].localToGlobal(_root["car" + who].pointLeft); _root["car" + who].pointRight = {x:20, y:0}; _root["car" + who].localToGlobal(_root["car" + who].pointRight); _root["car" + who].pointFront = {x:0, y:-25}; _root["car" + who].localToGlobal(_root["car" + who].pointFront); _root["car" + who].pointBack = {x:0, y:25}; _root["car" + who].localToGlobal(_root["car" + who].pointBack); this["lpx" + who] = _root["car" + who].pointLeft.x; this["lpy" + who] = _root["car" + who].pointLeft.y; this["rpx" + who] = _root["car" + who].pointRight.x; this["rpy" + who] = _root["car" + who].pointRight.y; this["fpx" + who] = _root["car" + who].pointFront.x; this["fpy" + who] = _root["car" + who].pointFront.y; this["bpx" + who] = _root["car" + who].pointBack.x; this["bpy" + who] = _root["car" + who].pointBack.y; if (_root.terrain.hitTest(this["lpx" + who], this["lpy" + who], true)) { _root["car" + who]._rotation = _root["car" + who]._rotation + 5; this["speed" + who] = this["speed" + who] * 0.85; } if (_root.terrain.hitTest(this["rpx" + who], this["rpy" + who], true)) { _root["car" + who]._rotation = _root["car" + who]._rotation - 5; this["speed" + who] = this["speed" + who] * 0.85; } if (_root.terrain.hitTest(this["fpx" + who], this["fpy" + who], true)) { this["speed" + who] = -1; } if (_root.terrain.hitTest(this["bpx" + who], this["bpy" + who], true)) { this["speed" + who] = 1; } _root["shadow" + who]._x = _root["car" + who]._x - 4; _root["shadow" + who]._y = _root["car" + who]._y + 2; _root["shadow" + who]._rotation = _root["car" + who]._rotation; if (_root["car" + who].hitTest(_root["checkpoint" + _root["currentCheckpoint" + who]])) { if (_root["currentCheckpoint" + who] == 1) { if (_root["currentLap" + who] != 0) { _root.setBestLap(); } if (_root["currentLap" + who] == _root.totalLaps) { _root.gotoAndStop("finish"); } else { _root["currentLap" + who]++; } _root.currentLapTXT = _root["currentLap" + who] + "/10"; } _root["currentCheckpoint" + who]++; if (_root["currentCheckpoint" + who] > _root.checkpoints) { _root["currentCheckpoint" + who] = 1; } } } if (_root["car" + who].code == "computer") { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - (minutes * 60); tensTXT = Math.round((milliseconds - (seconds * 1000)) / 10); if (minutesTXT < 10) { minutesTXT = "0" + minutesTXT; } if (secondsTXT < 10) { secondsTXT = "0" + secondsTXT; } if (tensTXT < 10) { tensTXT = "0" + tensTXT; } _root.totalTimeTXT = (((minutesTXT + ".") + secondsTXT) + ".") + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if ((oldMilliseconds > milliseconds) || (oldMilliseconds == null)) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - (minutes * 60); tensTXT = Math.round((milliseconds - (seconds * 1000)) / 10); if (minutesTXT < 10) { minutesTXT = "0" + minutesTXT; } if (secondsTXT < 10) { secondsTXT = "0" + secondsTXT; } if (tensTXT < 10) { tensTXT = "0" + tensTXT; } _root.bestLapTXT = (((minutesTXT + ".") + secondsTXT) + ".") + tensTXT; } _root.lapTime = getTimer(); }
Instance of Symbol 4 MovieClip "terrain" in Frame 1
onClipEvent (load) { this._visible = false; }
Frame 2
stop(); initialTime = getTimer(); lapTime = initialTime;
Instance of Symbol 34 MovieClip "stepper" in Frame 2
onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); }
Frame 3
stop();
Symbol 25 MovieClip Frame 50
_root.soundmc.engineStart.start(0, 1); _root.soundmc.engineLoop.start(0, 9999); _root.soundmc.engineLoop.setVolume(40); _root.play();
Symbol 25 MovieClip Frame 72
stop();
Symbol 39 Button
on (release) { _root.gotoAndPlay("readySet"); }
Symbol 44 MovieClip Frame 11
stop();

Library Items

Symbol 1 Sound [engineStart]
Symbol 2 Sound [engineLoop]
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:9
Symbol 7 GraphicUsed by:9
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:6 7 8Used by:Timeline
Symbol 10 FontUsed by:11 12 30 31 42
Symbol 11 TextUses:10Used by:Timeline
Symbol 12 TextUses:10Used by:Timeline
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:Timeline
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:Timeline
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:Timeline
Symbol 19 GraphicUsed by:Timeline
Symbol 20 GraphicUsed by:25
Symbol 21 FontUsed by:22 23 24 27 28 29 32 37 40 41
Symbol 22 TextUses:21Used by:25
Symbol 23 TextUses:21Used by:25
Symbol 24 TextUses:21Used by:25
Symbol 25 MovieClipUses:20 22 23 24Used by:Timeline
Symbol 26 GraphicUsed by:33
Symbol 27 TextUses:21Used by:33
Symbol 28 TextUses:21Used by:33
Symbol 29 TextUses:21Used by:33
Symbol 30 EditableTextUses:10Used by:33
Symbol 31 EditableTextUses:10Used by:33
Symbol 32 EditableTextUses:21Used by:33
Symbol 33 MovieClipUses:26 27 28 29 30 31 32Used by:Timeline
Symbol 34 MovieClipUsed by:Timeline
Symbol 35 GraphicUsed by:43
Symbol 36 GraphicUsed by:39
Symbol 37 TextUses:21Used by:39
Symbol 38 GraphicUsed by:39
Symbol 39 ButtonUses:36 37 38Used by:43
Symbol 40 TextUses:21Used by:43
Symbol 41 TextUses:21Used by:43
Symbol 42 EditableTextUses:10Used by:43
Symbol 43 MovieClipUses:35 39 40 41 42Used by:44
Symbol 44 MovieClipUses:43Used by:Timeline

Instance Names

"terrain"Frame 1Symbol 4 MovieClip
"checkpoint1"Frame 1Symbol 14 MovieClip
"checkpoint2"Frame 1Symbol 14 MovieClip
"shadow1"Frame 1Symbol 16 MovieClip
"car1"Frame 1Symbol 18 MovieClip
"stepper"Frame 2Symbol 34 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "engineStart"
ExportAssets (56)Timeline Frame 1Symbol 2 as "engineLoop"

Labels

"readyset"Frame 1
"go"Frame 2
"finish"Frame 3

Dynamic Text Variables

_root.bestLapTXTSymbol 30 EditableText"00.00.00"
_root.totalTimeTXTSymbol 31 EditableText"00.00.00"
_root.currentLapTXTSymbol 32 EditableText"000000"
_root.totalTimeTXTSymbol 42 EditableText"00.00.00"




http://swfchan.com/23/110234/info.shtml
Created: 13/3 -2019 22:16:56 Last modified: 13/3 -2019 22:16:56 Server time: 06/05 -2024 14:18:40