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

Happy New Year!

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

Roadkill.swf

This is the info page for
Flash #256210

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


Text
Hits:

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
function initGame() { firstBox = 1; lastBox = 0; hits = 5; totalBox = 50; timeSinceLastBox = 0; bgSpeed = 0; attachMovie("rect", "rect", 999999); rect._x = 275; rect._y = 200; } function moveRect() { if (rect._currentFrame > 4) { dx = 0; } else if (Key.isDown(39)) { dx = bgSpeed; rect.gotoAndStop("left"); } else if (Key.isDown(37)) { dx = -bgSpeed; rect.gotoAndStop("right"); } else { dx = 0; rect.gotoAndStop("normal"); } rect._x = rect._x + dx; if (rect._x < 150) { rect._x = 150; } if (rect._x > 400) { rect._x = 400; } if (bgSpeed < 20) { bgSpeed = bgSpeed + 0.5; } } function newBox() { if (timeSinceLastBox > 5) { if (lastBox < totalBox) { if (Math.random() < 0.1) { lastBox++; attachMovie("box", "box" + lastBox, lastBox); _root["box" + lastBox]._x = (Math.random() * 250) + 150; _root["box" + lastBox]._y = 450; f = int(Math.random() * _root["box" + lastBox]._totalFrames) + 1; _root["box" + lastBox].gotoAndStop(f); timeSinceLastBox = 0; _root["box" + i].hit = false; } } } timeSinceLastBox++; } function moveBox() { i = firstBox; while (i <= lastBox) { x = _root["box" + i]._x; y = _root["box" + i]._y - bgSpeed; if (y < -50) { removebox(i); } else if (((_root["box" + i].hit == false) and (Math.abs(y - rect._y) < 90)) and (Math.abs(x - rect._x) < 25)) { hits = hits - 1; _root["box" + i].hit = true; rect.gotoAndPlay("hit"); bgSpeed = 0; if (hits == 0) { removeAll(); totalBox = n; gotoAndPlay ("lose"); } } _root["box" + i]._y = y; i++; } } function removeBox(n) { _root["box" + n].removeMovieClip(); firstBox = n + 1; if (n == totalBox) { removeAll(); gotoAndPlay ("win"); } } function removeAll() { i = firstBox; while (i <= lastBox) { _root["box" + i].removeMovieClip(); i++; } rect.removeMovieClip(); } stop();
Instance of Symbol 20 MovieClip in Frame 2
onClipEvent (load) { _root.initGame(); } onClipEvent (enterFrame) { _root.moveRect(); _root.newBox(); _root.moveBox(); }
Frame 3
stop();
Frame 4
stop();
Symbol 15 Button
on (release) { gotoAndStop (2); }

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 GraphicUsed by:4
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [box]Uses:1 2 3
Symbol 5 GraphicUsed by:10
Symbol 6 GraphicUsed by:10
Symbol 7 GraphicUsed by:10
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClip [rect]Uses:5 6 7 9
Symbol 11 GraphicUsed by:Timeline
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:12 13 14Used by:Timeline
Symbol 16 GraphicUsed by:Timeline
Symbol 17 GraphicUsed by:19
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:17 18Used by:Timeline
Symbol 20 MovieClipUsed by:Timeline
Symbol 21 FontUsed by:22 23
Symbol 22 EditableTextUses:21Used by:Timeline
Symbol 23 TextUses:21Used by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 GraphicUsed by:Timeline

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 4 as "box"
ExportAssets (56)Timeline Frame 1Symbol 10 as "rect"

Labels

"win"Frame 3
"lose"Frame 4
"normal"Symbol 10 MovieClip [rect] Frame 1
"right"Symbol 10 MovieClip [rect] Frame 2
"left"Symbol 10 MovieClip [rect] Frame 3

Dynamic Text Variables

hitsSymbol 22 EditableText""




http://swfchan.com/52/256210/info.shtml
Created: 4/6 -2024 06:55:28 Last modified: 4/6 -2024 06:55:28 Server time: 03/01 -2025 02:20:16