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

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

BouncyBall.swf

This is the info page for
Flash #112522

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


Text
Press and hold space and move the mouse

Press 'del' to clear

ActionScript [AS1/AS2]

Frame 1
onLoad = function () { ballNum = 0; }; onEnterFrame = function () { if (Key.isDown(32)) { newBall = _root.createEmptyMovieClip("newball_" + ballNum, _root.getNextHighestDepth()); ballNum = ballNum + 1; newBall.attachMovie("Ball", "innerBall_" + ballNum, newBall.getNextHighestDepth()); newBall._x = _xmouse; newBall._y = _ymouse; } };
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (enterFrame) { if (Key.isDown(32)) { _alpha = 0; } }
Instance of Symbol 9 MovieClip "x" in Frame 1
onClipEvent (enterFrame) { if (Key.isDown(46)) { _alpha = 0; for (i in _root) { if ((_root[i]._name != "Ground") and (_root[i]._name != "x")) { _root[i].swapDepths(_root.getNextHighestDepth()); _root[i].removeMovieClip(); } } } }
Symbol 2 MovieClip [Ball] Frame 1
#initclip 2 Object.registerClass("Ball", Ball); #endinitclip stop();
Symbol 2 MovieClip [Ball] Frame 7
gotoAndStop (1);
Instance of Symbol 13 MovieClip "Slider" in Symbol 14 MovieClip Frame 1
onClipEvent (load) { totalLength = _parent.Bar._height; currentPos = (_y - _parent.Bar._y) / 10; _root.gravityScale = currentPos; } on (press) { startDrag (this, false, _x, _parent.Bar._y, _x, _parent.Bar._y + _parent.Bar._height); } on (release) { stopDrag(); } onClipEvent (enterFrame) { currentPos = (_y - _parent.Bar._y) / 10; _root.gravityScale = currentPos; }
Symbol 15 MovieClip [__Packages.Ball] Frame 0
class Ball extends MovieClip { var scale, gravity, touchingGround, falling, bouncing, waitBounce, onEnterFrame; function Ball () { super(); scale = 30; gravity = 9.81; touchingGround = false; falling = true; bouncing = false; waitBounce = true; onEnterFrame = function () { this.scale = _root.gravityScale; if (this.falling and (!this.touchingGround)) { this._y = this._y + (this.gravity / this.scale); this.gravity = this.gravity + 9.81; } if (this.bouncing and (this.gravity > 0)) { this._y = this._y - (this.gravity / this.scale); this.gravity = this.gravity - 9.81; } if (this.gravity <= 0) { this.bouncing = false; this.falling = true; } if (this.hitTest(_root.Ground)) { if (((this.gravity / this.scale) <= 3) and ((this.gravity / this.scale) > -3)) { this.gravity = 0; this.falling = false; this.bouncing = false; } else { this.falling = false; this.bouncing = true; this.gravity = this.gravity * -0.75; this.waitBounce = false; if (Math.abs(this.gravity) > 100) { (this.gotoAndPlay("bounce"));// not popped } else { (this.gotoAndPlay("bounceSmall"));// not popped } } } }; } }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [Ball]Uses:1Used by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 5 FontUsed by:6 8
Symbol 6 TextUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 TextUses:5Used by:9
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:14
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClipUses:11 13Used by:Timeline
Symbol 15 MovieClip [__Packages.Ball]

Instance Names

"Ground"Frame 1Symbol 4 MovieClip
"x"Frame 1Symbol 9 MovieClip
"Bar"Symbol 14 MovieClip Frame 1Symbol 11 MovieClip
"Slider"Symbol 14 MovieClip Frame 1Symbol 13 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "Ball"
ExportAssets (56)Timeline Frame 1Symbol 15 as "__Packages.Ball"

Labels

"bounce"Symbol 2 MovieClip [Ball] Frame 2
"bounceSmall"Symbol 2 MovieClip [Ball] Frame 8




http://swfchan.com/23/112522/info.shtml
Created: 12/3 -2019 08:10:49 Last modified: 12/3 -2019 08:10:49 Server time: 02/05 -2024 21:40:13