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

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

ben10-race-against-time-in-istanbul-park.swf

This is the info page for
Flash #121298

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


Text

LOADING

PLAY

PLAY

More Games

More Games

<p align="left"><font face="Futura MdCn BT" size="23" color="#fff378" letterSpacing="0.000000" kerning="0">flashgamehole.com</font></p>

<p align="left"><font face="Futura MdCn BT" size="23" color="#ffffff" letterSpacing="0.000000" kerning="0">flashgamehole.com</font></p>

<p align="left"><font face="Futura MdCn BT" size="23" color="#ffffff" letterSpacing="0.000000" kerning="0">flashgamehole.com</font></p>

<p align="left"><font face="Futura MdCn BT" size="23" color="#fff378" letterSpacing="0.000000" kerning="0">flashgamehole.com</font></p>

10

00:00

00:00

00:00

00

LAB 1 TIME

LAP 2 TIME

LAP 3 TIME

TIMER

TIME

RACE

REPLAY Game

REPLAY

REPLAY

Ben 10 Race FINISH

TOTAL TIME SCORE

BEST LAP




ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
Loading = _root.getBytesLoaded(); Total = _root.getBytesTotal(); if (Loading == Total) { gotoAndPlay (3); } else { _root.loaded = math.floor((Loading / Total) * 100) add "%"; gotoAndPlay (2); }
Frame 3
this.createEmptyMovieClip("s1", 1); my_Music = new Sound(s1); my_Music.attachSound("appolo"); my_Music.start(0, 100); my_Music.setVolume(100); stop();
Frame 4
this.createEmptyMovieClip("s2", 2); my_Gas = new Sound(s2); my_Gas.attachSound("gas"); this.createEmptyMovieClip("s3", 3); my_Kayma = new Sound(s3); my_Kayma.attachSound("kayma"); this.createEmptyMovieClip("s4", 4); my_Bip = new Sound(s4); my_Bip.attachSound("bipp"); this.createEmptyMovieClip("s5", 5); my_Check = new Sound(s5); my_Check.attachSound("checkpoint"); this.createEmptyMovieClip("s6", 6); my_Speedup = new Sound(s6); my_Speedup.attachSound("speedup"); my_Speepup.setVolume(100); my_Check.setVolume(100); my_Kayma.start(0, 2000); my_Gas.start(0, 9999); my_Gas.setVolume(0); my_Bip.setVolume(100); my_Kayma.setVolume(0); my_Music.setVolume(40); _root.zoomin._visible = false; _root.zoomin._alpha = 0; stop(); mbenneyTimer = function () { this.reset(); }; mT = mbenneyTimer.prototype; mT.reset = function () { var _local2 = this; _local2.oldTime = 0; _local2.pause = true; _local2.totalTime = 0; }; mT.stop = function () { var _local2 = this; if (!_local2.pause) { _local2.pause = true; _local2.totalTime = _local2.totalTime + (getTimer() - _local2.oldTime); } }; mT.start = function () { var _local2 = this; if (_local2.pause) { _local2.pause = false; _local2.oldTime = getTimer(); } }; mT.getMili = function () { var _local2 = this; var _local3 = _local2.totalTime; if (!_local2.pause) { _local3 = _local3 + (getTimer() - _local2.oldTime); } return(_local3); }; mT.getSecs = function () { var _local2 = this; var _local3 = _local2.totalTime / 1000; if (!_local2.pause) { _local3 = _local3 + ((getTimer() - _local2.oldTime) / 1000); } return(Math.round(_local3)); }; mT.getMins = function () { var _local2 = this; var _local3 = _local2.totalTime / 1000; if (!_local2.pause) { _local3 = _local3 + (((getTimer() - _local2.oldTime) / 1000) / 60); } return(Math.round(_local3)); }; mT.getCount = function (secs) { var _local2 = this; var _local3 = _local2.totalTime; if (!_local2.pause) { _local3 = _local3 + ((getTimer() - _local2.oldTime) / 1000); } var _local4 = secs - _local3; return(Math.round(_local4)); };
Instance of Symbol 68 MovieClip "car" in Frame 4
onClipEvent (load) { track_x = -294; track_y = -2207; this._x = 350; this._y = 250; angle = 1.560932; _rotation = ((angle * 180) / 3.141593); _root.track._x = track_x; _root.track._y = track_y; _root.lap1 = "00:00"; _root.lap2 = "00:00"; _root.lap3 = "00:00"; _root.timer = ""; }
Frame 5
stop();
Instance of Symbol 68 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 _local3 = Math.floor(ms / 1000); ms = ms % 1000; var _local1 = three(ms); var _local2 = Math.floor(_local3 / 60); _local3 = _local3 % 60; _local1 = (two(_local3) + ":") + _local1; var _local5 = Math.floor(_local2 / 60); _local2 = _local2 % 60; _local1 = (two(_local2) + ":") + _local1; return(_local1); } function skid(Handbrakey) { var _local4 = this; var _local5 = _root.track.attachMovie("skidmark", "skidleft" + skids, skids); var _local3 = 0; while (_local3 < _local4.displaywheels) { wheelsPos[_local3] = getPos(_local4["w" + _local3]); if (Handbrakey) { _local5.lineStyle(4, 0, 70); _local5.moveto(_local4.wheelsPos[_local3].x - track_x, _local4.wheelsPos[_local3].y - track_y); _local5.lineTo(_local4.lastpos[_local3].x, _local4.lastpos[_local3].y); } else { _local5.lineStyle(3, 0, 50); _local5.moveto(_local4.wheelsPos[_local3].x - track_x, _local4.wheelsPos[_local3].y - track_y); _local5.lineTo(_local4.lastpos[_local3].x, _local4.lastpos[_local3].y); } lastpos[_local3].x = _local4.wheelsPos[_local3].x - track_x; lastpos[_local3].y = _local4.wheelsPos[_local3].y - track_y; skids++; _local3++; } return(true); } function setLastpos() { var _local3 = this; var _local2 = 0; while (_local2 < _local3.displaywheels) { _local3.wheelsPos[_local2] = getPos(_local3["w" + _local2]); lastpos[_local2].x = _local3.wheelsPos[_local2].x - track_x; lastpos[_local2].y = _local3.wheelsPos[_local2].y - track_y; _local2++; } } function adjust(v, threshold, maximum) { vx = 0; if (v <= threshold) { vx = (v / threshold) * 1; } else { vx = 1; } return(vx); } accel = 0.3; steer = 0.08; steer_normal = 0.08; steer_handbrake = 0.099; steer_threshold = 4; MINspd = -5; MAXspd = 22; MAXskiddisplay = 2; MAXturnSpd = 15; MaxTurnSkid = 20; deccel = 0.92; handbrake = 0.93; handbrake_traction = 20; drift = 0.98; speed = 0; boyut = 1; surface = 2; traction = 5; traction_max = 2; 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 = -294; track_y = -2207; this._x = 350; this._y = 250; angle = 1.560932; _rotation = ((angle * 180) / 3.141593); 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) { _xscale = (100 / boyut); _yscale = (100 / boyut); _rotation = ((angle * 180) / 3.141593); _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); _root.my_Kayma.setVolume(30); } else { turnskidding = false; _root.my_Kayma.setVolume(0); } } else { turnskidding = false; _root.my_Kayma.setVolume(0); } 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) { _root.my_Kayma.setVolume(50); 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; } if (!_root.track.track.hittest(_x, _y, true)) { speed = speed * 0.95; traction = traction * 1.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.my_Gas.setVolume(int(speed * 2)); _root.speedHand._rotation = Math.max(-11, Math.Abs(speed * 8.5)); if (_root.track.bonusben10.hittest(_x, _y, true)) { boyut = 2; MAXspd = 28; _root.zoomin.zaraba._visible = true; _root.track.bonusben10._visible = false; _root.my_Speedup.start(); } if (_root.track.bonusben11.hittest(_x, _y, true)) { boyut = 2; MAXspd = 28; _root.zoomin.zaraba._visible = true; _root.track.bonusben11._visible = false; _root.my_Speedup.start(); } if (_root.track.check1.hittest(_x, _y, true)) { checkpoints[1] = true; boyut = 1; MAXspd = 22; _root.zoomin.zaraba._visible = false; _root.track.bonusben10._visible = true; _root.track.bonusben11._visible = true; } if (_root.track.check2.hittest(_x, _y, true)) { checkpoints[2] = true; boyut = 1; MAXspd = 22; _root.zoomin.zaraba._visible = false; _root.track.bonusben10._visible = true; _root.track.bonusben11._visible = true; } if (_root.track.check3.hittest(_x, _y, true)) { checkpoints[3] = true; boyut = 1; MAXspd = 22; _root.zoomin.zaraba._visible = false; _root.track.bonusben10._visible = true; _root.track.bonusben11._visible = true; } if (_root.track.check4.hittest(_x, _y, true)) { checkpoints[4] = true; boyut = 1; MAXspd = 22; _root.zoomin.zaraba._visible = false; _root.track.bonusben10._visible = true; _root.track.bonusben11._visible = true; } if (_root.track.check0.hittest(_x, _y, true)) { if (((checkpoints[1] & checkpoints[2]) & checkpoints[3]) & checkpoints[4]) { lap++; _root.my_Check.start(); 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 _local3 = Math.floor(ms / 1000); ms = ms % 1000; var _local1 = three(ms); var _local2 = Math.floor(_local3 / 60); _local3 = _local3 % 60; _local1 = (two(_local3) + ":") + _local1; var _local5 = Math.floor(_local2 / 60); _local2 = _local2 % 60; _local1 = (two(_local2) + ":") + _local1; return(_local1); } _root.totalrace = displaytime(_root.racetimer); pnconnector.storeScore(_root.racetimer); _root.bestlap = displaytime(_root.bestlaptime); stop();
Instance of Symbol 95 MovieClip [pnFlashGames] "pnconnector" in Frame 6
//component parameters onClipEvent (initialize) { debugMode = false; } //component parameters onClipEvent (initialize) { debugMode = true; }
Symbol 7 MovieClip [skidmark] Frame 71
this.removemovieclip();
Symbol 16 MovieClip Frame 142
_parent.play(); stop();
Symbol 24 Button
on (release) { getURL ("http://www.flashgamehole.com/en/flash-games/Ben%2010.html", "_blank"); }
Symbol 28 Button
on (release) { gotoAndPlay (4); }
Symbol 31 Button
on (release) { getURL ("http://www.flashgamehole.com/en/flash-games/Ben%2010.html", "_blank"); }
Symbol 43 MovieClip Frame 1
this.track._visible = false; this.crunchers._visible = false; this.bonusben10._visible = true; this.check0._visible = false; this.check1._visible = false; this.check2._visible = false; this.check3._visible = false; this.check4._visible = false; stop();
Symbol 49 Button
on (release) { getURL ("http://www.flashgamehole.com/en/flash-games/Ben%2010.html", "_blank"); }
Symbol 58 Button
on (release) { getURL ("http://www.flashgamehole.com", "_blank"); }
Symbol 68 MovieClip Frame 1
fscommand ("allowscale", "false");
Symbol 83 MovieClip Frame 25
_root.my_Bip.start(0, 1); _root.my_Bip.setVolume(100);
Symbol 83 MovieClip Frame 51
_root.my_Bip.start(0, 1); _root.my_Bip.setVolume(100);
Symbol 83 MovieClip Frame 76
_root.my_Bip.start(0, 1); _root.my_Bip.setVolume(100);
Symbol 83 MovieClip Frame 102
_root.my_Bip.start(0, 1); _root.my_Bip.setVolume(100); _root.gotoandplay(5); this.movieclipremove();
Symbol 87 MovieClip Frame 1
this.zaraba._visible = false; stop();
Symbol 94 Button
on (press) { _root.myMusic.stop(); _root.myGas.stop(); _root.myKayma.stop(); } on (release) { gotoAndStop (4); }

Library Items

Symbol 1 Sound [speedup]
Symbol 2 Sound [bipp]
Symbol 3 Sound [kayma]
Symbol 4 Sound [gas]
Symbol 5 Sound [appolo]
Symbol 6 Sound [checkpoint]
Symbol 7 MovieClip [skidmark]
Symbol 8 GraphicUsed by:Timeline
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:11
Symbol 11 MovieClipUses:10Used by:16
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:14
Symbol 14 MovieClipUses:13Used by:16  Timeline
Symbol 15 SoundUsed by:16
Symbol 16 MovieClipUses:11 14 15Used by:Timeline
Symbol 17 FontUsed by:18 25 26 29 30 73 74 75 76 89 90 91 97 98 99 100 101
Symbol 18 EditableTextUses:17Used by:Timeline
Symbol 19 FontUsed by:20 69 70 71 72 79
Symbol 20 EditableTextUses:19Used by:Timeline
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:Timeline
Symbol 23 GraphicUsed by:24
Symbol 24 ButtonUses:23Used by:Timeline
Symbol 25 TextUses:17Used by:28
Symbol 26 TextUses:17Used by:28
Symbol 27 GraphicUsed by:28 31
Symbol 28 ButtonUses:25 26 27Used by:Timeline
Symbol 29 TextUses:17Used by:31
Symbol 30 TextUses:17Used by:31
Symbol 31 ButtonUses:29 30 27Used by:Timeline
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:43
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:43
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:43
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:40
Symbol 40 MovieClipUses:39Used by:43
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:43
Symbol 43 MovieClipUses:33 35 37 40 42Used by:Timeline
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:Timeline
Symbol 46 BitmapUsed by:47 48
Symbol 47 GraphicUses:46Used by:49
Symbol 48 GraphicUses:46Used by:49
Symbol 49 ButtonUses:47 48Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:Timeline
Symbol 52 FontUsed by:53 54 55 57
Symbol 53 EditableTextUses:52Used by:58
Symbol 54 EditableTextUses:52Used by:58
Symbol 55 EditableTextUses:52Used by:58
Symbol 56 GraphicUsed by:58
Symbol 57 EditableTextUses:52Used by:58
Symbol 58 ButtonUses:53 54 55 56 57Used by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 GraphicUsed by:68
Symbol 62 FontUsed by:63
Symbol 63 TextUses:62Used by:68 85 86
Symbol 64 MovieClipUsed by:68
Symbol 65 MovieClipUsed by:68
Symbol 66 MovieClipUsed by:68
Symbol 67 MovieClipUsed by:68
Symbol 68 MovieClipUses:61 63 64 65 66 67Used by:Timeline
Symbol 69 EditableTextUses:19Used by:Timeline
Symbol 70 EditableTextUses:19Used by:Timeline
Symbol 71 EditableTextUses:19Used by:Timeline
Symbol 72 EditableTextUses:19Used by:Timeline
Symbol 73 EditableTextUses:17Used by:Timeline
Symbol 74 EditableTextUses:17Used by:Timeline
Symbol 75 EditableTextUses:17Used by:Timeline
Symbol 76 EditableTextUses:17Used by:Timeline
Symbol 77 MovieClipUsed by:83
Symbol 78 GraphicUsed by:83
Symbol 79 EditableTextUses:19Used by:83
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:83
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:77 78 79 80 81 82Used by:Timeline
Symbol 84 GraphicUsed by:85 86
Symbol 85 MovieClipUses:84 63Used by:86
Symbol 86 MovieClipUses:84 63 85Used by:87
Symbol 87 MovieClipUses:86Used by:Timeline
Symbol 88 MovieClipUsed by:94  Timeline
Symbol 89 EditableTextUses:17Used by:94
Symbol 90 EditableTextUses:17Used by:94
Symbol 91 EditableTextUses:17Used by:94
Symbol 92 GraphicUsed by:94
Symbol 93 GraphicUsed by:94
Symbol 94 ButtonUses:88 89 90 91 92 93Used by:Timeline
Symbol 95 MovieClip [pnFlashGames]Used by:Timeline
Symbol 96 GraphicUsed by:Timeline
Symbol 97 EditableTextUses:17Used by:Timeline
Symbol 98 EditableTextUses:17Used by:Timeline
Symbol 99 EditableTextUses:17Used by:Timeline
Symbol 100 EditableTextUses:17Used by:Timeline
Symbol 101 EditableTextUses:17Used by:Timeline

Instance Names

"track"Frame 4Symbol 43 MovieClip
"speedHand"Frame 4Symbol 60 MovieClip
"car"Frame 4Symbol 68 MovieClip
"car"Frame 5Symbol 68 MovieClip
"zoomin"Frame 5Symbol 87 MovieClip
"replay"Frame 6Symbol 94 Button
"pnconnector"Frame 6Symbol 95 MovieClip [pnFlashGames]
"crunchers"Symbol 43 MovieClip Frame 1Symbol 33 MovieClip
"track"Symbol 43 MovieClip Frame 1Symbol 37 MovieClip
"bonusben10"Symbol 43 MovieClip Frame 1Symbol 40 MovieClip
"bonusben11"Symbol 43 MovieClip Frame 1Symbol 40 MovieClip
"check0"Symbol 43 MovieClip Frame 1Symbol 42 MovieClip
"check1"Symbol 43 MovieClip Frame 1Symbol 42 MovieClip
"check2"Symbol 43 MovieClip Frame 1Symbol 42 MovieClip
"check3"Symbol 43 MovieClip Frame 1Symbol 42 MovieClip
"check4"Symbol 43 MovieClip Frame 1Symbol 42 MovieClip
"w1"Symbol 68 MovieClip Frame 1Symbol 64 MovieClip
"w0"Symbol 68 MovieClip Frame 1Symbol 65 MovieClip
"f1"Symbol 68 MovieClip Frame 1Symbol 66 MovieClip
"f0"Symbol 68 MovieClip Frame 1Symbol 67 MovieClip
"zaraba"Symbol 87 MovieClip Frame 1Symbol 86 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "speedup"
ExportAssets (56)Timeline Frame 1Symbol 2 as "bipp"
ExportAssets (56)Timeline Frame 1Symbol 3 as "kayma"
ExportAssets (56)Timeline Frame 1Symbol 4 as "gas"
ExportAssets (56)Timeline Frame 1Symbol 5 as "appolo"
ExportAssets (56)Timeline Frame 1Symbol 6 as "checkpoint"
ExportAssets (56)Timeline Frame 1Symbol 7 as "skidmark"
ExportAssets (56)Timeline Frame 6Symbol 95 as "pnFlashGames"

Dynamic Text Variables

loadedSymbol 18 EditableText" "
lap1Symbol 69 EditableText"00:00 "
lap2Symbol 70 EditableText"00:00"
lap3Symbol 71 EditableText"00:00"
timerSymbol 72 EditableText"00 "
totalraceSymbol 100 EditableText" "
bestlapSymbol 101 EditableText" "




http://swfchan.com/25/121298/info.shtml
Created: 4/3 -2019 11:34:59 Last modified: 4/3 -2019 11:34:59 Server time: 22/12 -2024 10:49:08