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

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

plaything.swf

This is the info page for
Flash #6803

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


ActionScript [AS1/AS2]
Frame 1
function poof(x, y, impact) { attachMovie("poof", "p" + poofCount, poofCount, {_x:x, _y:y, _xscale:impact, _yscale:impact}); poofCount++; score = score + Math.round(Math.abs(impact / 8)); } Stage.align = "TL"; Stage.scaleMode = "noscale"; var poofCount = 0; var score = 0; stop();
Symbol 3 MovieClip [poof] Frame 5
this.removeMovieClip();
Symbol 6 Button
on (press) { dragBall(); } on (release, releaseOutside) { releaseBall(); }
Symbol 10 MovieClip [ball] Frame 1
#initclip 2 Object.registerClass("ball", ball); #endinitclip
Symbol 12 MovieClip [__Packages.ball] Frame 0
class ball extends MovieClip { var x_velocity, y_velocity, bounce, gravity, friction, wallImpact, rotate, rotateDecay, onEnterFrame, speed0, speed1, speed2, speed3, radius, _width, startDrag, dx, _x, dy, _y, _xmouse, stopDrag, rotatable, lastx, lasty; function ball () { super(); x_velocity = (Math.random() * 20) - 10; y_velocity = (Math.random() * 10) - 5; bounce = -0.8; gravity = 2; friction = 0.95; wallImpact = -0.8; rotate = 0; rotateDecay = 0.9; onEnterFrame = upkeep; speed0 = (speed1 = (speed2 = (speed3 = 0))); radius = _width / 2; } function dragBall() { onEnterFrame = listen; (startDrag(false, radius, radius, Stage.width - radius, Stage.height - radius));// not popped dx = _x; dy = _y; } function releaseBall() { onEnterFrame = upkeep; y_velocity = dy; x_velocity = dx; if ((dy == 0) && (dx == 0)) { y_velocity = -20; x_velocity = 25 * (Math.min(Math.abs(_xmouse), _width / 2) / _width); if (_xmouse > 0) { x_velocity = x_velocity * -1; } } (stopDrag());// not popped } function upkeep() { y_velocity = y_velocity + gravity; _y = _y + y_velocity; _x = _x + x_velocity; if ((_y + radius) > Stage.height) { y_velocity = y_velocity * bounce; _y = Stage.height - radius; if (y_velocity < -5) { _root.poof(_x, Stage.height, y_velocity * 4); } x_velocity = x_velocity * friction; if ((x_velocity * rotate) < 0) { rotate = rotate * -1; } rotate = rotate * rotateDecay; } else if ((_y - radius) < 0) { y_velocity = y_velocity * bounce; _y = radius; if (y_velocity > 5) { _root.poof(_x, 0, y_velocity * 4); } x_velocity = x_velocity * friction; if ((x_velocity * rotate) < 0) { rotate = rotate * -1; } rotate = rotate * rotateDecay; } if ((_x - radius) < 0) { x_velocity = x_velocity * wallImpact; _x = radius; _root.poof(0, _y, x_velocity * 4); rotate = rotate + 5; } else if ((_x + radius) > Stage.width) { x_velocity = x_velocity * wallImpact; _x = Stage.width - radius; _root.poof(Stage.width, _y, x_velocity * 4); rotate = rotate + 5; } rotatable._rotation = rotatable._rotation + rotate; if (Math.abs(x_velocity) < 1) { x_velocity = 0; } if (Math.abs(y_velocity) < 1) { y_velocity = 0; } } function listen() { dx = _x - lastx; dy = _y - lasty; var _local2 = Math.sqrt((dx * dx) + (dy * dy)); speed3 = speed2; speed2 = speed1; speed1 = speed0; speed0 = _local2; lastx = _x; lasty = _y; } }

Library Items

Symbol 1 ShapeTweeningUsed by:3
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClip [poof]Uses:1 2
Symbol 4 GraphicUsed by:6
Symbol 5 GraphicUsed by:6
Symbol 6 ButtonUses:4 5Used by:10
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [ball]Uses:6 8 9Used by:Timeline
Symbol 11 GraphicUsed by:Timeline
Symbol 12 MovieClip [__Packages.ball]

Instance Names

"rotatable"Symbol 10 MovieClip [ball] Frame 1Symbol 8 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 3 as "poof"
ExportAssets (56)Timeline Frame 1Symbol 10 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 12 as "__Packages.ball"




http://swfchan.com/2/6803/info.shtml
Created: 13/6 -2019 13:24:40 Last modified: 13/6 -2019 13:24:40 Server time: 04/05 -2024 09:18:38