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

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

DTunnel.swf

This is the info page for
Flash #22349

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


Text
Loading Game:

skip

Presents...

dtunnel!

Sounds provided by:
www.flashkit.com
sound loop by:
Needtheweb
"Aai Tookai"

score:

menu

menu

music: on

music: off

play

play

instructions

instructions

play highscore version

play highscore version

Dtunnel

play again

play again

game over

your score is:

back

back

instructions

Navigate your ship through the
tunnel using the left and right arrow
keys.

pause button: p

toggle music: o

sounds

ActionScript [AS1/AS2]

Frame 1
stop(); Stage.showMenu = false; Stage.scaleMode = "noScale";
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); percent = (loading / total) * 100; per = int(percent); percentage = per + "%"; loadBar._width = per; if (percent > 99) { _parent.gotoAndStop("intro"); } }
Frame 3
_root.rover = new Sound(rover); _root.rover.attachSound("rover"); _root.explode = new Sound(explode); _root.explode.attachSound("explode"); _root.loop = new Sound(loop); _root.loop.attachSound("loop"); _root.loopvolume = 100; _root.fade = "in"; _root.gsc = "play"; _root.display._visible = false; _root.score = "None"; _root.stageheight = 220; _root.stagewidth = 400; _root.mycolor = "0x000000"; _root.halfshipwidth = 10; _root.maxjaggyness = 30; _root.mintunnelwidth = 30; _root.minaddy = 20; _root.terrainarray = new Array(); _root.coordinates = new Array(); _root.loop.onSoundComplete = function () { _root.loop.start(0, 0); }; _root.setup = function () { _root.loop.stop(); _root.loop.start(0, 0); if (_root.gsc == "play") { _root.loopvolume = 100; _root.fade = "in"; } else if (_root.gsc == "stop") { _root.fade = "out"; _root.loopvolume = 0; } _root.loop.setVolume(_root.loopvolume); _root.attachMovie("ship", "ship", 1); _root.ship._y = _root.stageheight - 5; _root.ship._x = _root.stagewidth / 2; _root.attachMovie("terrain", "terrain" + _root.depth, _root.depth); _root.terrainarray[_root.terrainarray.length] = _root["terrain" + _root.depth]; if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } _root.addterrain = false; _root.diesequence = false; _root.display._visible = true; _root.gameplay = true; _root.score = 0; _root.speed = 14; _root.tspeed = 15; _root.jaggyness = 10; _root.tunnelwidth = 125; _root.depth = 5; _root.nextx = (_root.stagewidth / 2) - (_root.tunnelwidth / 2); _root.addy = 50; _root.deadcounter = 0; _root.pausedelay = 0; }; _root.clean = function () { i = _root._root.terrainarray.length - 1; while (i >= 0) { _root.terrainarray[i].removeMovieClip(); _root.terrainarray.splice(i, 1); i--; } i = _root._root.coordinates.length - 1; while (i >= 0) { _root.coordinates[i].removeMovieClip(); _root.coordinates.splice(i, 1); i--; } _root.ship.removeMovieClip(); _root.explosion.removeMovieClip(); _root.youaredead = false; _root.display._visible = false; _root.gameplay = false; _root.fade = "end"; };
Instance of Symbol 97 MovieClip "display" in Frame 3
onClipEvent (load) { _root.display.swapDepths(10000); }
Instance of Symbol 6 MovieClip in Frame 3
onClipEvent (keyDown) { if (Key.isDown(79)) { if (_root.gsc == "play") { _root.gsc = "stop"; _root.fade = "out"; _root.display.music.gotoAndStop("off"); } else { _root.gsc = "play"; if (_root.gameplay == true) { _root.fade = "in"; } _root.display.music.gotoAndStop("on"); } } } onClipEvent (enterFrame) { if (_root.pausedelay < 50) { _root.pausedelay++; } if (Key.isDown(80) and (_root.pausedelay == 50)) { _root.pausedelay = 0; if (_root.gameplay == true) { _root.gameplay = false; _root.fade = "out"; } else { _root.gameplay = true; if (_root.gsc == "play") { _root.fade = "in"; } } } if (_root.fade == "in") { if (_root.loopvolume < 100) { _root.loopvolume = _root.loopvolume + 8; _root.loop.setVolume(_root.loopvolume); } else if (_root.loopvolume > 100) { _root.loopvolume = 100; _root.loop.setVolume(_root.loopvolume); } } else if (_root.fade == "out") { if (_root.loopvolume > 0) { _root.loopvolume = _root.loopvolume - 20; } else if (_root.loopvolume < 0) { _root.loopvolume = 0; } _root.loop.setVolume(_root.loopvolume); } else if (_root.fade == "end") { if (_root.loopvolume > 0) { _root.loopvolume = _root.loopvolume - 30; _root.loop.setVolume(_root.loopvolume); } else if (_root.loopvolume < 0) { _root.loop.stop(); } } if (_root.youaredead == true) { if (_root.diesequence == false) { _root.attachMovie("explosion", "explosion", 1010); _root.explosion._x = _root.ship._x; _root.explosion._y = _root.ship._y; _root.ship.removeMovieClip(); _root.espeed = _root.tspeed - 10; _root.explode.start(0, 0); _root.gameplay = false; _root.fade = "end"; _root.diesequence = true; } _root.deadcounter++; _root.explosion._y = _root.explosion._y - _root.espeed; _root.espeed = _root.espeed - 0.5; if (_root.deadcounter == 30) { _root.clean(); _root.maindisplay.gotoAndStop("gameover"); _root.deadcounter = 0; } } if (_root.gameplay == true) { _root.score++; _root.display.scoretext = _root.score; if (Key.isDown(37)) { _root.ship._x = _root.ship._x - _root.speed; } else if (Key.isDown(39)) { _root.ship._x = _root.ship._x + _root.speed; } if (_root.ship._x > _root.stagewidth) { _root.ship._x = _root.stagewidth; } else if (_root.ship._x < 0) { _root.ship._x = 0; } tc = _root.terrainarray.length - 1; while (tc >= 0) { _root.terrainarray[tc]._y = _root.terrainarray[tc]._y + _root.tspeed; if (_root.addterrain == false) { if (_root.terrainarray[tc]._y >= (_root.terrainarray[tc]._height - 10)) { _root.attachMovie("terrain", "terrain" + _root.depth, _root.depth); _root.terrainarray[_root.terrainarray.length] = _root["terrain" + _root.depth]; _root["terrain" + _root.depth]._y = _root.terrainarray[tc]._y - (_root.terrainarray[tc]._height - _root.tspeed); if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } _root.addterrain = true; } } if (_root.terrainarray[tc]._y >= (_root.stageheight + _root.terrainarray[tc]._height)) { _root._root.addterrain = false; _root.terrainarray[tc].removeMovieClip(); _root.terrainarray.splice(tc, 1); } if (_root.terrainarray[tc].hitTest(_root.ship._x + _root.ship.point1._x, _root.ship._y + _root.ship.point1._y, true) or _root.terrainarray[tc].hitTest(_root.ship._x + _root.ship.point2._x, _root.ship._y + _root.ship.point2._y, true)) { _root.youaredead = true; } _root.tspeed = _root.tspeed + 0.005; if (_root.tunnelwidth > _root.mintunnelwidth) { _root.tunnelwidth = _root.tunnelwidth - 0.01; } if (_root.jaggyness < _root.maxjaggyness) { _root.jaggyness = _root.jaggyness + 0.01; } if (_root.addy > _root.minaddy) { _root.addy = _root.addy - 0.01; } tc--; } } }
Symbol 4 MovieClip [terrain] Frame 1
createEmptyMovieClip("left", _root.depth); with (left) { beginFill(_root.mycolor, 100); moveTo(0, 0); lineStyle(3, _root.mycolor, 100); nextx = _root.nextx; nexty = 0; lineTo(nextx, nexty); _root.coordinates.push(nextx); _root.coordinates.push(nexty); i = 25; while (i > 0) { addx = random(Math.round(_root.jaggyness / 2)) + (_root.jaggyness / 2); if (nextx <= (addx + 10)) { nextx = nextx + addx; } else if ((nextx + addx) > ((_root.stagewidth - _root.tunnelwidth) - 10)) { nextx = nextx - addx; trace("minus"); } else { aors = random(2); if (aors == 0) { nextx = nextx + addx; } else { nextx = nextx - addx; } } nexty = nexty - _root.addy; lineTo(nextx, nexty); _root.coordinates.push(nextx); _root.coordinates.push(nexty); i--; } _root.nextx = nextx; lineTo(0, nexty); LineTo(0, 0); endFill(); } if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } createEmptyMovieClip("right", _root.depth); with (right) { beginFill(_root.mycolor, 100); moveTo(_root.stagewidth, 0); lineStyle(3, _root.mycolor, 100); i = _root.coordinates.length / 2; while (i > 0) { lineTo(_root.coordinates[0] + _root.tunnelwidth, _root.coordinates[1]); rlasty = _root.coordinates[1]; _root.coordinates.splice(0, 2); i--; } lineTo(_root.stagewidth, rlasty); lineTo(_root.stagewidth, 0); endFill(); } if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; }
Symbol 8 MovieClip [explosion] Frame 1
i = 30; while (i > 0) { wone = random(2); rotation = random(361); size = random(50) + 70; if (wone == 0) { attachMovie("smallpar", "smallpar" + _root.depth, _root.depth); _root.explosion["smallpar" + _root.depth]._x = (_root.explosion["smallpar" + _root.depth]._y = 0); _root.explosion["smallpar" + _root.depth]._rotation = rotation; _root.explosion["smallpar" + _root.depth]._xscale = (_root.explosion["smallpar" + _root.depth]._yscale = size); if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } } else { attachMovie("bigpar", "bigpar" + _root.depth, _root.depth); _root.explosion["bigpar" + _root.depth]._x = (_root.explosion["bigpar" + _root.depth]._y = 0); _root.explosion["bigpar" + _root.depth]._rotation = rotation; _root.explosion["bigpar" + _root.depth]._xscale = (_root.explosion["bigpar" + _root.depth]._yscale = size); if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } } i--; } i = 5; while (i > 0) { wone = random(2); rotation = random(60) - 30; size = random(50) + 70; if (wone == 0) { attachMovie("smallpar", "smallpar" + _root.depth, _root.depth); _root.explosion["smallpar" + _root.depth]._x = (_root.explosion["smallpar" + _root.depth]._y = 0); _root.explosion["smallpar" + _root.depth]._rotation = rotation; _root.explosion["smallpar" + _root.depth]._xscale = (_root.explosion["smallpar" + _root.depth]._yscale = size); if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } } else { attachMovie("bigpar", "bigpar" + _root.depth, _root.depth); _root.explosion["bigpar" + _root.depth]._x = (_root.explosion["bigpar" + _root.depth]._y = 0); _root.explosion["bigpar" + _root.depth]._rotation = rotation; _root.explosion["bigpar" + _root.depth]._xscale = (_root.explosion["bigpar" + _root.depth]._yscale = size); if (_root.depth < 1000) { _root.depth++; } else { _root.depth = 5; } } i--; }
Symbol 11 MovieClip [bigpar] Frame 20
this.removeMovieClip();
Symbol 12 MovieClip [smallpar] Frame 10
this.removeMovieClip();
Symbol 19 MovieClip Frame 1
stop();
Symbol 24 Button
on (release) { _root.gotoAndStop("game"); }
Symbol 80 Button
on (release) { getURL ("www.flashkit.com", "_blank"); }
Symbol 81 Button
on (release) { getURL ("http://www.flashkit.com/loops/Techno-Dance/Techno/Aai_Took-Needthew-3776/index.php", "_blank"); }
Symbol 83 MovieClip Frame 273
_root.gotoAndStop("game");
Symbol 92 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.clean(); _root.score = 0; _root.maindisplay.gotoAndStop("title"); }
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Instance of Symbol 96 MovieClip "music" in Symbol 97 MovieClip Frame 1
on (release) { if (_root.gsc == "play") { _root.gsc = "stop"; _root.fade = "out"; _root.display.music.gotoAndStop("off"); } else { _root.gsc = "play"; if (_root.gameplay == true) { _root.fade = "in"; } _root.display.music.gotoAndStop("on"); } }
Symbol 102 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.maindisplay.gotoAndStop("blank"); _root.setup(); }
Symbol 105 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.maindisplay.gotoAndStop("instructions"); }
Symbol 108 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { getURL ("http://members.lycos.co.uk/dounanthebarb/dtunnel.html?", "_blank"); }
Symbol 110 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.maindisplay.gotoAndStop("title"); }
Symbol 113 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.maindisplay.gotoAndStop("blank"); _root.setup(); }
Symbol 119 Button
on (rollOver) { _root.rover.stop(); _root.rover.start(); } on (release) { _root.maindisplay.gotoAndStop("title"); }
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop(); _root.maindisplay.fscore = _root.score;
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();

Library Items

Symbol 1 Sound [explode]
Symbol 2 Sound [rover]
Symbol 3 Sound [loop]
Symbol 4 MovieClip [terrain]
Symbol 5 GraphicUsed by:7
Symbol 6 MovieClipUsed by:7  Timeline
Symbol 7 MovieClip [ship]Uses:5 6
Symbol 8 MovieClip [explosion]
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11 12
Symbol 11 MovieClip [bigpar]Uses:9 10
Symbol 12 MovieClip [smallpar]Uses:10
Symbol 13 FontUsed by:14 18 22 74 76 78 86 87 94 95 100 101 103 104 106 107 111 112 115 116 121
Symbol 14 TextUses:13Used by:19
Symbol 15 GraphicUsed by:16 21
Symbol 16 MovieClipUses:15Used by:19
Symbol 17 GraphicUsed by:19
Symbol 18 EditableTextUses:13Used by:19
Symbol 19 MovieClipUses:14 16 17 18Used by:Timeline
Symbol 20 GraphicUsed by:Timeline
Symbol 21 MovieClipUses:15Used by:83
Symbol 22 TextUses:13Used by:83
Symbol 23 GraphicUsed by:24 80 81
Symbol 24 ButtonUses:23Used by:83
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:83
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:83
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:83
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:83
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:83
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:83
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:83
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:83
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:83
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:83
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:83
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:83
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:83
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:83
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:83
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:83
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:83
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:83
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:83
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:83
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:83
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:83
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:83
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:73
Symbol 73 MovieClipUses:72Used by:83
Symbol 74 TextUses:13Used by:75
Symbol 75 MovieClipUses:74Used by:83
Symbol 76 TextUses:13Used by:77
Symbol 77 MovieClipUses:76Used by:83
Symbol 78 TextUses:13Used by:79
Symbol 79 MovieClipUses:78Used by:83
Symbol 80 ButtonUses:23Used by:83
Symbol 81 ButtonUses:23Used by:83
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:21 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 73 75 77 79 80 81 82Used by:Timeline
Symbol 84 GraphicUsed by:Timeline
Symbol 85 GraphicUsed by:97
Symbol 86 TextUses:13Used by:97
Symbol 87 EditableTextUses:13Used by:97
Symbol 88 GraphicUsed by:92 108 110 113 119
Symbol 89 FontUsed by:90 91 109 114 117 118 120 122 123
Symbol 90 TextUses:89Used by:92 110
Symbol 91 TextUses:89Used by:92 110
Symbol 92 ButtonUses:88 90 91Used by:97
Symbol 93 GraphicUsed by:96 102 105
Symbol 94 TextUses:13Used by:96
Symbol 95 TextUses:13Used by:96
Symbol 96 MovieClipUses:93 94 95Used by:97
Symbol 97 MovieClipUses:85 86 87 92 96Used by:Timeline
Symbol 98 GraphicUsed by:124
Symbol 99 GraphicUsed by:124
Symbol 100 TextUses:13Used by:102
Symbol 101 TextUses:13Used by:102
Symbol 102 ButtonUses:93 100 101Used by:124
Symbol 103 TextUses:13Used by:105
Symbol 104 TextUses:13Used by:105
Symbol 105 ButtonUses:93 103 104Used by:124
Symbol 106 TextUses:13Used by:108
Symbol 107 TextUses:13Used by:108
Symbol 108 ButtonUses:88 106 107Used by:124
Symbol 109 TextUses:89Used by:124
Symbol 110 ButtonUses:88 90 91Used by:124
Symbol 111 TextUses:13Used by:113
Symbol 112 TextUses:13Used by:113
Symbol 113 ButtonUses:88 111 112Used by:124
Symbol 114 TextUses:89Used by:124
Symbol 115 TextUses:13Used by:124
Symbol 116 EditableTextUses:13Used by:124
Symbol 117 TextUses:89Used by:119
Symbol 118 TextUses:89Used by:119
Symbol 119 ButtonUses:88 117 118Used by:124
Symbol 120 TextUses:89Used by:124
Symbol 121 TextUses:13Used by:124
Symbol 122 TextUses:89Used by:124
Symbol 123 TextUses:89Used by:124
Symbol 124 MovieClipUses:98 99 102 105 108 109 110 113 114 115 116 119 120 121 122 123Used by:Timeline
Symbol 125 FontUsed by:126
Symbol 126 EditableTextUses:125Used by:Timeline

Instance Names

"display"Frame 3Symbol 97 MovieClip
"maindisplay"Frame 3Symbol 124 MovieClip
"rover"Frame 3Symbol 6 MovieClip
"explode"Frame 3Symbol 6 MovieClip
"loop"Frame 3Symbol 6 MovieClip
"point1"Symbol 7 MovieClip [ship] Frame 1Symbol 6 MovieClip
"point2"Symbol 7 MovieClip [ship] Frame 1Symbol 6 MovieClip
"loadBar"Symbol 19 MovieClip Frame 1Symbol 16 MovieClip
"music"Symbol 97 MovieClip Frame 1Symbol 96 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "explode"
ExportAssets (56)Timeline Frame 1Symbol 2 as "rover"
ExportAssets (56)Timeline Frame 1Symbol 3 as "loop"
ExportAssets (56)Timeline Frame 1Symbol 4 as "terrain"
ExportAssets (56)Timeline Frame 1Symbol 7 as "ship"
ExportAssets (56)Timeline Frame 1Symbol 8 as "explosion"
ExportAssets (56)Timeline Frame 1Symbol 11 as "bigpar"
ExportAssets (56)Timeline Frame 1Symbol 12 as "smallpar"

Labels

"preloader"Frame 1
"intro"Frame 2
"game"Frame 3
"on"Symbol 96 MovieClip Frame 1
"off"Symbol 96 MovieClip Frame 2
"title"Symbol 124 MovieClip Frame 1
"gameover"Symbol 124 MovieClip Frame 2
"instructions"Symbol 124 MovieClip Frame 3
"blank"Symbol 124 MovieClip Frame 4

Dynamic Text Variables

percentageSymbol 18 EditableText""
scoretextSymbol 87 EditableText""
fscoreSymbol 116 EditableText""




http://swfchan.com/5/22349/info.shtml
Created: 26/5 -2019 23:42:12 Last modified: 26/5 -2019 23:42:12 Server time: 22/12 -2024 01:33:16