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

swfchan turned sixteen years old the day before yesterday! (5may2024)

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

1319617284813.swf

This is the info page for
Flash #101577

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


ActionScript [AS1/AS2]
Frame 1
function moveball() { if (Key.isDown(39)) { Xspeed = Xspeed + ballSpeed; } if (Key.isDown(37)) { Xspeed = Xspeed - ballSpeed; } if (Key.isDown(40)) { Yspeed = Yspeed + ballSpeed; } if (Key.isDown(38)) { Yspeed = Yspeed - ballSpeed; } } function applyMovement() { _root.ball._x = _root.ball._x + Xspeed; _root.ball._y = _root.ball._y + Yspeed; _root.ball._rotation = _root.ball._rotation + (0.75 * Xspeed); } function ballFriction() { if (Xspeed > 0) { Xspeed = Xspeed - friction; } if (Xspeed < 0) { Xspeed = Xspeed + friction; } if (Yspeed > 0) { Yspeed = Yspeed - friction; } if (Yspeed < 0) { Yspeed = Yspeed + friction; } } function ballGravity() { Yspeed = Yspeed + gravity; } function boundaries() { if (_root.ball._x >= 525) { Xspeed = -Xspeed; } if (_root.ball._x <= 25) { Xspeed = -Xspeed; } if (_root.ball._y >= 375) { Yspeed = -Yspeed; } if (_root.ball._y <= 25) { Yspeed = -Yspeed; } if (_root.ball._x >= 526) { _root.ball._x = _root.ball._x - 3; } if (_root.ball._x <= 24) { _root.ball._x = _root.ball._x + 3; } if (_root.ball._y >= 376) { _root.ball._y = _root.ball._y - 3; } if (_root.ball._y <= 24) { _root.ball._y = _root.ball._y + 3; } } points = 0; health = 100; fscommand ("fullscreen", "false"); fscommand ("allowscale", "false"); var Xspeed = 0; var Yspeed = 0; var friction = 0.2; var gravity = 0.25; var ballSpeed = 0.8; onEnterFrame = function () { moveball(); applyMovement(); ballFriction(); ballGravity(); boundaries(); }; stop();
Frame 2
function moveball() { if (Key.isDown(39)) { Xspeed = Xspeed + ballSpeed; } if (Key.isDown(37)) { Xspeed = Xspeed - ballSpeed; } if (Key.isDown(40)) { Yspeed = Yspeed + ballSpeed; } if (Key.isDown(38)) { Yspeed = Yspeed - ballSpeed; } } function applyMovement() { _root.ball._x = _root.ball._x + Xspeed; _root.ball._y = _root.ball._y + Yspeed; _root.ball._rotation = _root.ball._rotation + (0.75 * Xspeed); } function ballFriction() { if (Xspeed > 0) { Xspeed = Xspeed - friction; } if (Xspeed < 0) { Xspeed = Xspeed + friction; } if (Yspeed > 0) { Yspeed = Yspeed - friction; } if (Yspeed < 0) { Yspeed = Yspeed + friction; } } function ballGravity() { Yspeed = Yspeed + gravity; } function boundaries() { if (_root.ball._x >= 525) { Xspeed = -Xspeed; } if (_root.ball._x <= 25) { Xspeed = -Xspeed; } if (_root.ball._y >= 375) { Yspeed = -Yspeed; } if (_root.ball._y <= 25) { Yspeed = -Yspeed; } if (_root.ball._x >= 526) { _root.ball._x = _root.ball._x - 3; } if (_root.ball._x <= 24) { _root.ball._x = _root.ball._x + 3; } if (_root.ball._y >= 376) { _root.ball._y = _root.ball._y - 3; } if (_root.ball._y <= 24) { _root.ball._y = _root.ball._y + 3; } } var Xspeed = 0; var Yspeed = 0; var friction = 0.2; var gravity = 0.25; var ballSpeed = 0.8; onEnterFrame = function () { moveball(); applyMovement(); ballFriction(); ballGravity(); boundaries(); };
Instance of Symbol 3 MovieClip "ball" in Frame 2
onClipEvent (enterFrame) { _root.points = _root.points + 1; _root.health = _root.health - 0.05; }
Instance of Symbol 21 MovieClip "health" in Frame 2
onClipEvent (enterFrame) { this._width = _root.health * 5.4; } onClipEvent (enterFrame) { if (this._width == 0) { _root.gotoAndStop(3); } }
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (enterFrame) { if (hitTest(_root.ball)) { this._y = -2000 - (Math.Random() * 2000); _root.points = _root.points + 200; this._x = Math.random() * 550; } else { this._y = this._y + 30; this._rotation = this._rotation + 15; } if (this._y >= 400) { this._y = -2000 - (Math.Random() * 2000); this._x = Math.random() * 550; } }
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (enterFrame) { if (hitTest(_root.ball)) { this._y = -2000 - (Math.Random() * 2000); _root.points = _root.points + 600; this._x = Math.random() * 550; } else { this._y = this._y + 30; this._rotation = this._rotation + 15; } if (this._y >= 400) { this._y = -2000 - (Math.Random() * 2000); this._x = Math.random() * 550; } }
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (enterFrame) { if (hitTest(_root.ball)) { this._y = -2000 - (Math.Random() * 2000); _root.points = _root.points + 400; this._x = Math.random() * 550; } else { this._y = this._y + 30; this._rotation = this._rotation + 15; } if (this._y >= 400) { this._y = -2000 - (Math.Random() * 2000); this._x = Math.random() * 550; } }
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (enterFrame) { if (hitTest(_root.ball)) { this._y = -2000 - (Math.Random() * 2000); _root.points = _root.points + 800; this._x = Math.random() * 550; } else { this._y = this._y + 30; this._rotation = this._rotation + 15; } if (this._y >= 400) { this._y = -2000 - (Math.Random() * 2000); this._x = Math.random() * 550; } }
Symbol 13 Button
on (release) { gotoAndStop (2); }
Symbol 16 MovieClip Frame 1
snowflakes = 75; do { duplicateMovieClip (snow, "snow" + k, k); k++; } while (k != snowflakes);
Instance of Symbol 15 MovieClip "snow" in Symbol 16 MovieClip Frame 1
onClipEvent (load) { width = 550; height = 400; this._xscale = (this._yscale = 50 + (Math.random() * 100)); this._alpha = 20 + (Math.random() * 50); this._x = (-width) + (Math.random() * (3 * width)); this._y = -10 + (Math.random() * height); i = 1 + (Math.random() * 2); k = -3.14159265358979 + (Math.random() * Math.PI); rad = 0; } onClipEvent (enterFrame) { rad = rad + ((k / 180) * Math.PI); xmovement = 0; this._x = this._x - (Math.cos(rad) + ((xmovement - (width / 2)) / 50)); this._y = this._y + i; if (this._x > (width + 50)) { this._x = -45; this._y = (Math.random() * height) * 2; } if (this._x < -50) { this._x = width + 45; this._y = (Math.random() * height) * 2; } if (this._y >= height) { this._y = -50; this._x = (-width) + (Math.random() * (3 * width)); } }
Symbol 25 Button
on (release) { _root.gotoAndStop(1); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:7 25
Symbol 7 MovieClipUses:6Used by:13 25
Symbol 8 GraphicUsed by:13 25
Symbol 9 GraphicUsed by:13
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:13 25
Symbol 12 GraphicUsed by:13 25
Symbol 13 ButtonUses:7 8 9 10 11 12Used by:Timeline
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:16
Symbol 16 MovieClipUses:15Used by:Timeline
Symbol 17 GraphicUsed by:Timeline
Symbol 18 FontUsed by:19 23
Symbol 19 EditableTextUses:18Used by:Timeline
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 GraphicUsed by:Timeline
Symbol 23 EditableTextUses:18Used by:Timeline
Symbol 24 GraphicUsed by:25
Symbol 25 ButtonUses:7 8 24 11 12 6Used by:Timeline

Instance Names

"ball"Frame 1Symbol 3 MovieClip
"button"Frame 1Symbol 13 Button
"snow"Frame 1Symbol 16 MovieClip
"ball"Frame 2Symbol 3 MovieClip
"snow"Frame 2Symbol 16 MovieClip
"health"Frame 2Symbol 21 MovieClip
"snow"Symbol 16 MovieClip Frame 1Symbol 15 MovieClip

Dynamic Text Variables

_root.pointsSymbol 19 EditableText""
_root.pointsSymbol 23 EditableText""




http://swfchan.com/21/101577/info.shtml
Created: 20/3 -2019 08:14:57 Last modified: 20/3 -2019 08:14:57 Server time: 07/05 -2024 07:28:41