STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229596
/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/80079593?noj=FRM80079593-23DC" width="1" height="1"></div>

Bouncy Car.swf

This is the info page for
Flash #76094

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


Text
Menu!

PLAY!

Draw the ramp then click GO!

exit

GO!

GO!

RESET!

RED!

GREEN!

DARK BLUE!

???

BACK!

THIN LINES!

PAUSE!

INSTRUCTIONS!

Drawlines. Press go. The car will bounce off the
lines. Press any of the buttons (example: red) and
it will do what it says. (red changes line color to
red, green to green, thin lines to thin lines,etc.)
You find out what ??? does. Back sends your car
back without resetting any lines (reset deletes all
lines.) Pause just stops your car. If you get to the
exit, your car will just stop. Nothing fancy. The
exit is draggable.

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
go = false; createEmptyMovieClip("terrain", 1); terrain.lineStyle(10, 2228309, 100); imdrawing = false; onMouseDown = function () { if (!go) { if (imdrawing == false) { terrain.moveTo(_xmouse, _ymouse); imdrawing = true; } if (imdrawing == true) { onEnterFrame = function () { terrain.lineTo(_xmouse, _ymouse); }; } } }; onMouseUp = function () { onEnterFrame = function () { imdrawing = false; }; }; stop();
Instance of Symbol 14 MovieClip "exit" in Frame 2
onClipEvent (load) { drag = false; } onClipEvent (enterFrame) { if (drag == true) { this._x = _root._xmouse; this._y = _root._ymouse; } } onClipEvent (keyDown) { if (getCode() == "<Key.UP>") { trace("The up arrow key was pressed"); } }
Instance of Symbol 23 MovieClip "ball" in Frame 2
onClipEvent (load) { yspeed = -1; xspeed = -1; gravity = 0.7; radius = 5; friction = 0.9; precision = 360; bounces = 0; } onClipEvent (enterFrame) { if (_root.go == true) { if (_root.exit.hitTest(_x, _y, true)) { xspeed = 0; yspeed = 0; } else { collisions = 0; sum_x = 0; sum_y = 0; yspeed = yspeed + gravity; x = 1; while (x < precision) { spot_x = _x + (radius * Math.sin((x * 360) / precision)); spot_y = _y - (radius * Math.cos((x * 360) / precision)); if (_root.terrain.hitTest(spot_x, spot_y, true)) { collisions++; sum_x = sum_x + spot_x; sum_y = sum_y + spot_y; } x++; } if (collisions > 0) { _root.last_hit._x = old_x; _root.last_hit._y = old_y; bounces++; _root.collisions.text = "Bounces: " + bounces; ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180); if ((xspeed * -1) < 0) { ball_dir = ball_dir + 180; } if (((xspeed * -1) >= 0) && (yspeed < 0)) { ball_dir = ball_dir + 360; } spot_x = sum_x / collisions; spot_y = sum_y / collisions; x_cat = spot_x - _x; y_cat = spot_y - _y; ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180); if (x_cat < 0) { ball_coll = ball_coll + 180; } if ((x_cat >= 0) && (y_cat < 0)) { ball_coll = ball_coll + 360; } ground_rotation = ball_coll - 90; if (ground_rotation < 0) { ground_rotation = ground_rotation + 180; } bounce_angle = (180 - ball_dir) - (2 * ground_rotation); if (bounce_angle < 0) { bounce_angle = bounce_angle + 360; } speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed)); xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction; yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction; _x = old_x; _y = old_y; } else { old_x = _x; old_y = _y; } _y = (_y + yspeed); _x = (_x + xspeed); } } } on (keyPress "<Space>") { go = false; }
Frame 3
stop();
Symbol 7 Button
on (press) { gotoAndPlay (2); }
Symbol 11 Button
on (press) { drag = true; } on (release) { drag = false; }
Symbol 29 Button
on (release) { go = true; }
Symbol 32 Button
on (release) { _root.ball._x = 11.4; _root.ball._y = 9.2; _root.ball.xspeed = 0; _root.ball.yspeed = 0; _root.go = false; _root.terrain.clear(); _root.terrain.lineStyle(10, 2228309, 100); }
Symbol 35 Button
on (release) { terrain.lineStyle(10, 16713993, 100); }
Symbol 37 Button
on (release) { terrain.lineStyle(10, 191560, 100); }
Symbol 39 Button
on (release) { terrain.lineStyle(10, 2228309, 100); }
Symbol 41 Button
on (release) { terrain.lineStyle(25, 0, 1); }
Symbol 43 Button
on (release) { _root.ball._x = 11.4; _root.ball._y = 9.2; _root.ball.xspeed = 0; _root.ball.yspeed = 0; _root.go = false; _root.terrain.lineStyle(10, 2228309, 100); }
Symbol 45 Button
on (release) { terrain.lineStyle(5, 0, 100); }
Symbol 47 Button
on (press) { go = false; }
Symbol 49 Button
on (press) { gotoAndPlay (3); }
Symbol 50 Button
on (press) { gotoAndPlay (2); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3 8
Symbol 3 EditableTextUses:2Used by:Timeline
Symbol 4 FontUsed by:5 26 28 30 33 36 38 40 42 44 46 48
Symbol 5 TextUses:4Used by:7 50
Symbol 6 GraphicUsed by:7 50
Symbol 7 ButtonUses:5 6Used by:Timeline
Symbol 8 EditableTextUses:2Used by:Timeline
Symbol 9 GraphicUsed by:14
Symbol 10 GraphicUsed by:11
Symbol 11 ButtonUses:10Used by:14
Symbol 12 FontUsed by:13
Symbol 13 TextUses:12Used by:14
Symbol 14 MovieClipUses:9 11 13Used by:Timeline
Symbol 15 GraphicUsed by:23
Symbol 16 GraphicUsed by:23
Symbol 17 GraphicUsed by:23
Symbol 18 GraphicUsed by:23
Symbol 19 GraphicUsed by:23
Symbol 20 GraphicUsed by:23
Symbol 21 GraphicUsed by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:15 16 17 18 19 20 21 22Used by:Timeline
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:24Used by:Timeline
Symbol 26 TextUses:4Used by:29
Symbol 27 GraphicUsed by:29
Symbol 28 EditableTextUses:4Used by:29
Symbol 29 ButtonUses:26 27 28Used by:Timeline
Symbol 30 TextUses:4Used by:32
Symbol 31 GraphicUsed by:32
Symbol 32 ButtonUses:30 31Used by:Timeline
Symbol 33 TextUses:4Used by:35
Symbol 34 GraphicUsed by:35 37 39 41 43 45 47 49
Symbol 35 ButtonUses:33 34Used by:Timeline
Symbol 36 TextUses:4Used by:37
Symbol 37 ButtonUses:36 34Used by:Timeline
Symbol 38 TextUses:4Used by:39
Symbol 39 ButtonUses:38 34Used by:Timeline
Symbol 40 TextUses:4Used by:41
Symbol 41 ButtonUses:40 34Used by:Timeline
Symbol 42 TextUses:4Used by:43
Symbol 43 ButtonUses:42 34Used by:Timeline
Symbol 44 TextUses:4Used by:45
Symbol 45 ButtonUses:44 34Used by:Timeline
Symbol 46 TextUses:4Used by:47
Symbol 47 ButtonUses:46 34Used by:Timeline
Symbol 48 TextUses:4Used by:49
Symbol 49 ButtonUses:48 34Used by:Timeline
Symbol 50 ButtonUses:5 6Used by:Timeline
Symbol 51 FontUsed by:52
Symbol 52 EditableTextUses:51Used by:Timeline

Instance Names

"collisions"Frame 1Symbol 3 EditableText
"collisions"Frame 2Symbol 8 EditableText
"exit"Frame 2Symbol 14 MovieClip
"ball"Frame 2Symbol 23 MovieClip
"last_hit"Frame 2Symbol 25 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.




http://swfchan.com/16/76094/info.shtml
Created: 5/4 -2019 09:13:57 Last modified: 5/4 -2019 09:13:57 Server time: 23/12 -2024 08:22:47