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

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

ballonstring.swf

This is the info page for
Flash #6653

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


ActionScript [AS1/AS2]
Frame 1
function distanceBetween(x1, y1, x2, y2) { var x = (x2 - x1); var y = (y2 - y1); return(Math.sqrt((x * x) + (y * y))); } function onEnterFrame() { var oldX = ball_mc._x; var oldY = ball_mc._y; xv = xv * friction; yv = yv * friction; yv = yv + gravity; ball_mc._x = ball_mc._x + xv; ball_mc._y = ball_mc._y + yv; var dist = distanceBetween(_xmouse, _ymouse, ball_mc._x, ball_mc._y); var angleTo = Math.atan2(ball_mc._y - _ymouse, ball_mc._x - _xmouse); ball_mc._x = (Math.cos(angleTo) * Math.min(stringLength, dist)) + _xmouse; ball_mc._y = (Math.sin(angleTo) * Math.min(stringLength, dist)) + _ymouse; xv = ball_mc._x - oldX; yv = ball_mc._y - oldY; string_mc._x = _xmouse; string_mc._y = _ymouse; string_mc._rotation = ((angleTo / Math.PI) * 180) - 90; string_mc._yscale = Math.min(stringLength, dist); string_mc._xscale = stringLength - string_mc._yscale; } xv = 0; yv = 0; friction = 0.99; gravity = 5; stringLength = 200; ball_mc._color = new Color(ball_mc); ball_mc._color.setTransform({ra:100, ga:0, ba:0}); ball_mc.onPress = function () { this._color.setTransform({ra:Math.random() * 100, ga:Math.random() * 100, ba:Math.random() * 100}); };

Library Items

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

Instance Names

"string_mc"Frame 1Symbol 2 MovieClip
"ball_mc"Frame 1Symbol 4 MovieClip




http://swfchan.com/2/6653/info.shtml
Created: 13/6 -2019 20:34:24 Last modified: 13/6 -2019 20:34:24 Server time: 30/04 -2024 01:49:57