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

physicsdemo.swf

This is the info page for
Flash #119826

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


ActionScript [AS1/AS2]
Instance of Symbol 2 MovieClip in Frame 1
onClipEvent (load) { xSpeed = 0; ySpeed = 0; acceleration = 0.2; maxSpeed = 10; friction = 0.985; } onClipEvent (enterFrame) { velocity = Math.sqrt(Math.pow(xSpeed, 2) + Math.pow(ySpeed, 2)); if (Key.isDown(38)) { ySpeed = ySpeed - 0.25; } if (Key.isDown(40)) { ySpeed = ySpeed + 0.25; } if (Key.isDown(37)) { xSpeed = xSpeed - 0.25; } if (Key.isDown(39)) { xSpeed = xSpeed + 0.25; } if (_x < 0) { _x = 775; } if ((_x + _width) > 800) { _x = 0; } if (_y < 0) { _y = 575; } if ((_y + _height) > 600) { _y = 0; } _x = (_x + xSpeed); _y = (_y + ySpeed); if (xSpeed > maxSpeed) { xSpeed = maxSpeed; } if (xSpeed < (-maxSpeed)) { xSpeed = -maxSpeed; } if (ySpeed > maxSpeed) { ySpeed = maxSpeed; } if (ySpeed < (-maxSpeed)) { ySpeed = -maxSpeed; } xSpeed = xSpeed * friction; ySpeed = ySpeed * friction; }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline

Special Tags

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




http://swfchan.com/24/119826/info.shtml
Created: 5/3 -2019 16:25:14 Last modified: 5/3 -2019 16:25:14 Server time: 22/12 -2024 09:29:13