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/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Physics of a Bouncyball.swf

This is the info page for
Flash #54296

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


Text
mass:

gravity:

friction:

ActionScript [AS1/AS2]

Frame 55
stop();
Frame 110
gotoAndPlay (111);
Frame 111
ymov = 0; xmov = 0; var gravity = 2; yaccel = 0; xaccel = 0; var mass = 5; var friction = 0.98; xfriction = 0.95; force = 10; _root.onEnterFrame = function () { var _local3 = (gravityslider._x - 438) / 2; var _local2 = (massslider._x - 434) / 2; var _local4 = ((86 - (frictionslider._x - 438)) * 0.0001162) + 0.905; xfriction = _local4 - 0.05; massslider._y = massbar._y; gravityslider._y = gravitybar._y; frictionslider._y = frictionbar._y; if (frictionslider._x > 524) { frictionslider._x = 524; } if (frictionslider._x < 438) { frictionslider._x = 438; } if (gravityslider._x > 524) { gravityslider._x = 524; } if (gravityslider._x < 438) { gravityslider._x = 438; } if (massslider._x > 524) { massslider._x = 524; } if (massslider._x < 438) { massslider._x = 438; } yaccel = _local3 / _local2; ymov = ymov + yaccel; ymov = ymov * _local4; ball._y = ball._y + ymov; if (ball._y > 400) { ball._y = 400; ymov = ymov * -1; } if (Key.isDown(37)) { xaccel = force / _local2; xmov = xmov - xaccel; } if (Key.isDown(39)) { xaccel = force / _local2; xmov = xmov + xaccel; } xmov = xmov * xfriction; ball._x = ball._x + xmov; if (ball._x < 0) { ball._x = 0; xmov = xmov * -1; } if (ball._x < -50) { ball._x = ball._x + 200; xaccel = xaccel - 200000; } if (ball._x > 520) { ball._x = 520; xmov = xmov * -1; } if (ball._x > 600) { ball._x = ball._x - 200; xaccel = xaccel - 200000; } if (_root.ball.hitTest(_root.pad)) { ymov = ymov - 10; yaccel = yaccel + (100 / ((_local3 * _local3) + (_local2 * _local2))); } }; stop();
Symbol 16 Button
on (release) { gotoAndPlay (56); }
Symbol 20 Button
on (release) { gotoAndPlay (1); }
Symbol 49 Button
on (press) { startDrag ("massslider"); } on (release, releaseOutside) { stopDrag(); }
Symbol 50 Button
on (press) { startDrag ("gravityslider"); } on (release, releaseOutside) { stopDrag(); }
Symbol 51 Button
on (press) { startDrag ("frictionslider"); } on (release, releaseOutside) { stopDrag(); }

Library Items

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

Instance Names

"floor"Frame 111Symbol 27 MovieClip
"pad"Frame 111Symbol 36 MovieClip
"massbar"Frame 111Symbol 39 MovieClip
"gravitybar"Frame 111Symbol 39 MovieClip
"frictionbar"Frame 111Symbol 39 MovieClip
"ball"Frame 111Symbol 42 MovieClip
"massslider"Frame 111Symbol 49 Button
"gravityslider"Frame 111Symbol 50 Button
"frictionslider"Frame 111Symbol 51 Button

Special Tags

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




http://swfchan.com/11/54296/info.shtml
Created: 21/4 -2019 20:27:51 Last modified: 21/4 -2019 20:27:51 Server time: 22/12 -2024 20:23:58