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

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

attractors water.swf

This is the info page for
Flash #2160

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


Text
DRAG THE CIRCLES, HAVE SOME FUN.

<p align="left"><font face="Arial_10pt_st" size="10" color="#666666">More stuff at <a href="http://www.thecleverest.com">thecleverest.com</a></font></p>

ActionScript [AS1/AS2]

Frame 1
function move() { var _local14 = this._height * 0.05; _root.vxr = (Math.random() * 1) + 3; _root.vyr = 0; var _local7 = magnet._x - this._x; var _local6 = magnet._y - this._y; var _local11 = (_local7 * _local7) + (_local6 * _local6); var _local13 = Math.sqrt(_local11); var _local4 = 2000 / _local11; _local4 = Math.min(_local4, 2); var _local17 = (_local4 * _local7) / _local13; var _local15 = (_local4 * _local6) / _local13; var _local9 = magnet2._x - this._x; var _local8 = magnet2._y - this._y; var _local12 = (_local9 * _local9) + (_local8 * _local8); var _local10 = Math.sqrt(_local12); var _local3 = 2000 / _local12; _local3 = Math.min(_local3, 2); var _local18 = (_local3 * _local9) / _local10; var _local16 = (_local3 * _local8) / _local10; this.vx = this.vx + (_local17 + _local18); this.vy = this.vy + (_local15 + _local16); this.vy = this.vy + (grav + _local14); this._x = this._x + this.vx; this._y = this._y + this.vy; check(this, l0); check(this, l1); if (this._y > 450) { this._x = (this.oldx = 20); this._y = (this.oldy = 80); this.vx = vxr; this.vy = vyr; } var _local5 = createEmptyMovieClip("t" + count, count++); if (count > 160) { count = 100; } _local5.lineStyle(this._width, 39423, 100); _local5.moveTo(this.oldx, this.oldy); _local5.lineTo(this._x, this._y); this.oldx = this._x; this.oldy = this._y; } function check(dot, line) { var _local10 = line.getBounds(_root); if ((dot._x > _local10.xMin) && (dot._x < _local10.xMax)) { var _local7 = line._x - dot._x; var _local6 = line._y - dot._y; var _local12 = (line._rotation * Math.PI) / 180; var _local4 = Math.cos(_local12); var _local3 = Math.sin(_local12); var _local5 = (_local4 * _local6) - (_local3 * _local7); var _local9 = (_local4 * dot.vy) - (_local3 * dot.vx); if ((_local5 < 1) && (_local5 > (-_local9))) { var _local11 = (_local4 * _local7) + (_local3 * _local6); _local5 = 1; var _local13 = (_local4 * dot.vx) + (_local3 * dot.vy); _local9 = _local9 * bounce; dot.vx = (_local4 * _local13) - (_local3 * _local9); dot.vy = (_local4 * _local9) + (_local3 * _local13); _local7 = (_local4 * _local11) - (_local3 * _local5); _local6 = (_local4 * _local5) + (_local3 * _local11); dot._x = line._x - _local7; dot._y = line._y - _local6; } } } numdots = 40; bounce = -0.5; grav = 0.4; count = 100; pressing = false; magnet.onPress = function () { startDrag (this); }; magnet.onRelease = function () { stopDrag(); }; magnet2.onPress = function () { startDrag (this); }; magnet2.onRelease = function () { stopDrag(); }; l0.onPress = function () { if (l0.myDial.hitTest(_root._xmouse, _root._ymouse)) { pressing0 = true; } else { startDrag (this); } }; l0.onRelease = (l0.onReleaseOutside = function () { stopDrag(); pressing0 = false; }); l0.onEnterFrame = function () { if (pressing0 == true) { myRadians = Math.atan2(_ymouse - _root.l0._y, _xmouse - _root.l0._x); myDegrees = Math.round((myRadians * 180) / Math.PI); _root.l0._rotation = myDegrees - 90; } }; l1.onPress = function () { if (l1.myDial.hitTest(_root._xmouse, _root._ymouse)) { pressing = true; } else { startDrag (this); } }; l1.onRelease = (l1.onReleaseOutside = function () { stopDrag(); pressing = false; }); l1.onEnterFrame = function () { if (pressing == true) { myRadians = Math.atan2(_ymouse - _root.l1._y, _xmouse - _root.l1._x); myDegrees = Math.round((myRadians * 180) / Math.PI); _root.l1._rotation = myDegrees - 90; } }; i = 0; while (i < numdots) { dot = attachMovie("dot", "d" + i, i); dot._x = (dot.oldx = 20); dot._y = (dot.oldy = 80); dot._width = (dot._height = Math.random() * 3); dot.vx = (Math.random() * 1) + 3; dot.vy = 0; dot.onEnterFrame = move; i++; }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [dot]Uses:1
Symbol 3 GraphicUsed by:4 9
Symbol 4 MovieClip [magnet]Uses:3Used by:Timeline
Symbol 5 GraphicUsed by:8
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClipUses:5 7Used by:Timeline
Symbol 9 MovieClipUses:3Used by:Timeline
Symbol 10 FontUsed by:11 12
Symbol 11 TextUses:10Used by:Timeline
Symbol 12 EditableTextUses:10Used by:Timeline

Instance Names

"l0"Frame 1Symbol 8 MovieClip
"l1"Frame 1Symbol 8 MovieClip
"magnet"Frame 1Symbol 4 MovieClip [magnet]
"magnet2"Frame 1Symbol 9 MovieClip
"myDial"Symbol 8 MovieClip Frame 1Symbol 7 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 2 as "dot"
ExportAssets (56)Timeline Frame 1Symbol 4 as "magnet"
ExportAssets (56)Timeline Frame 1Symbol 4 as "magnet"




http://swfchan.com/1/2160/info.shtml
Created: 17/6 -2019 16:54:36 Last modified: 17/6 -2019 16:54:36 Server time: 21/12 -2024 14:40:49