STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
A Very Merry Christmas! |
This is the info page for Flash #25505 |
play |
ActionScript [AS1/AS2]
Frame 1stop();Instance of Symbol 10 MovieClip "flipperRight" in Frame 1onClipEvent (load) { angle = 0; ismoving = false; } onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { if (this._rotation < 90) { ismoving = true; this._rotation = angle; angle = angle + 50; } else { ismoving = false; } } else { ismoving = false; angle = 0; this._rotation = angle; } }Instance of Symbol 12 MovieClip "flipperLeft" in Frame 1onClipEvent (load) { angle = 0; ismoving = false; } onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { if (-90 < this._rotation) { ismoving = true; this._rotation = angle; angle = angle - 50; } else { ismoving = false; } } else { ismoving = false; angle = 360; this._rotation = angle; } }Frame 45stop();Instance of Symbol 38 MovieClip "ball" in Frame 45onClipEvent (load) { movy = -2; movx = 1; colid = false; (oldy = 0); score = 0; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { startDrag (this); } } onClipEvent (mouseUp) { stopDrag(); } onClipEvent (enterFrame) { _root.text = score; s = new Sound(); s.attachSound("looserwav"); if (384 < this._y) { s.start(); _root.gotoAndPlay(1); } var friction = 0.02; if (Math.abs(movx)) { movx = movx - (movx * friction); } if (Math.abs(movy)) { movy = movy - (movy * friction); } if (!colid) { movy = movy + 0.12; } if (5 < movx) { movx = 5; } else if (movx < -5) { movx = -5; } if (4 < movy) { movy = 4; } else if (movy < -8) { movy = -8; } this._x = this._x + movx; this._y = this._y + movy; obstNum = 11; i = 0; for ( ; i < obstNum ; i++) { var ball = this; var obstacle = _root["obst" + i]; var collisionX = (obstacle._x - ball._x); var collisionY = (obstacle._y - ball._y); var distanceSquared = ((collisionX * collisionX) + (collisionY * collisionY)); var sumRadius = ((ball._height / 2) + (obstacle._height / 2)); var sumRadiusSquared = (sumRadius * sumRadius); if (sumRadiusSquared >= distanceSquared) { score = score + 150; obstacle.play(); var collisionVectorLength = Math.sqrt(distanceSquared); if (collisionVectorLength == 0) { collisionVectorLength = 1; } var collisionNormalX = (collisionX / collisionVectorLength); var collisionNormalY = (collisionY / collisionVectorLength); var Acvx = ((movx * collisionNormalX) + (movy * collisionNormalY)); var Acvy = ((movy * collisionNormalX) - (movx * collisionNormalY)); if (Acvx < 0) { continue; } var Bcvx = 0; var Bcvy = 0; var m1 = 3; var m2 = 100; var mT = (m1 + m2); var Afvx = ((((m1 - m2) * Acvx) + ((m2 + m2) * Bcvx)) / mT); movx = (Afvx * collisionNormalX) - (Acvy * collisionNormalY); movy = (collisionNormalX * Acvy) + (Afvx * collisionNormalY); movx = movx * 5; movy = movy * 5; this.gotoAndStop(2); } else { this.gotoAndStop(1); } } if (this._y < (_root.wallTop._y + (this._height / 2))) { this._y = _root.wallTop._y + (this._height / 2); movy = movy * -1; } else if ((_root.wallBot._y - (this._height / 2)) < this._y) { this._y = _root.wallBot._y - (this._height / 2); movy = movy * -1; } else if ((_root.wallRig._x - (this._height / 2)) < this._x) { this._x = _root.wallRig._x - (this._height / 2); movx = movx * -1; } else if (this._x < (_root.wallLef._x + (this._height / 2))) { this._x = _root.wallLef._x + (this._height / 2); movx = movx * -1; } oldx = this._x; oldy = this._y; if (_root.flipperLeft.hitTest(this._x, this._y, true) || (_root.flipperRight.hitTest(this._x, this._y, true))) { if (_root.flipperRight.hitTest(this._x, this._y, true)) { var flipper = _root.flipperRight; var angle = (45 + _root.flipperRight._rotation); var phiRad = (Math.PI * (angle / 180)); } else if (_root.flipperLeft.hitTest(this._x, this._y, true)) { var flipper = _root.flipperLeft; var angle = (135 + _root.flipperLeft._rotation); var phiRad = (Math.PI * (angle / 180)); } var movxN = ((movx * Math.cos(phiRad)) - (movy * Math.sin(phiRad))); var movyN = ((movx * Math.sin(phiRad)) + (movy * Math.cos(phiRad))); this._x = oldx; this._y = oldy - 2; if ((0 < movy) && (flipper.ismoving)) { movyN = movyN * -4.5; } else if ((0 < movy) && (!flipper.ismoving)) { movyN = movyN * -1; } else if ((movy < 0) && (flipper.ismoving)) { movyN = movyN * 4.5; } else if ((movy < 0) && (!flipper.ismoving)) { movyN = movyN * 1; } movx = (movxN * Math.cos(phiRad)) + (movyN * Math.sin(phiRad)); movy = ((-movxN) * Math.sin(phiRad)) + (movyN * Math.cos(phiRad)); colid = true; } else { colid = false; } }Symbol 17 MovieClip Frame 1stop();Symbol 17 MovieClip Frame 15gotoAndStop (1);Symbol 18 MovieClip Frame 1stop();Symbol 18 MovieClip Frame 15gotoAndStop (1);Symbol 28 Buttonon (release) { play(); }
Library Items
Symbol 1 Sound [looserwav] | ||
Symbol 2 Graphic | Used by:Timeline | |
Symbol 3 Graphic | Used by:Timeline | |
Symbol 4 Graphic | Used by:Timeline | |
Symbol 5 Graphic | Used by:Timeline | |
Symbol 6 Graphic | Used by:Timeline | |
Symbol 7 Graphic | Used by:Timeline | |
Symbol 8 Graphic | Used by:Timeline | |
Symbol 9 Graphic | Used by:10 | |
Symbol 10 MovieClip | Uses:9 | Used by:Timeline |
Symbol 11 Graphic | Used by:12 | |
Symbol 12 MovieClip | Uses:11 | Used by:Timeline |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 MovieClip | Uses:13 | Used by:17 18 |
Symbol 15 Graphic | Used by:17 18 | |
Symbol 16 Sound | Used by:17 18 | |
Symbol 17 MovieClip | Uses:14 15 16 | Used by:Timeline |
Symbol 18 MovieClip | Uses:14 15 16 | Used by:Timeline |
Symbol 19 Graphic | Used by:21 22 Timeline | |
Symbol 20 Graphic | Used by:21 22 | |
Symbol 21 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 22 MovieClip | Uses:19 20 | Used by:Timeline |
Symbol 23 Graphic | Used by:Timeline | |
Symbol 24 Font | Used by:25 | |
Symbol 25 Text | Uses:24 | Used by:Timeline |
Symbol 26 Graphic | Used by:Timeline | |
Symbol 27 Graphic | Used by:28 | |
Symbol 28 Button | Uses:27 | Used by:Timeline |
Symbol 29 Graphic | Used by:30 38 | |
Symbol 30 MovieClip | Uses:29 | Used by:Timeline |
Symbol 31 Graphic | Used by:Timeline | |
Symbol 32 Graphic | Used by:33 | |
Symbol 33 MovieClip | Uses:32 | Used by:Timeline |
Symbol 34 Graphic | Used by:35 | |
Symbol 35 MovieClip | Uses:34 | Used by:Timeline |
Symbol 36 Font | Used by:37 | |
Symbol 37 EditableText | Uses:36 | Used by:Timeline |
Symbol 38 MovieClip | Uses:29 | Used by:Timeline |
Instance Names
"flipperRight" | Frame 1 | Symbol 10 MovieClip |
"flipperLeft" | Frame 1 | Symbol 12 MovieClip |
"obst0" | Frame 1 | Symbol 17 MovieClip |
"obst1" | Frame 1 | Symbol 17 MovieClip |
"obst2" | Frame 1 | Symbol 18 MovieClip |
"obst4" | Frame 1 | Symbol 17 MovieClip |
"obst5" | Frame 1 | Symbol 17 MovieClip |
"obst6" | Frame 1 | Symbol 17 MovieClip |
"obst7" | Frame 1 | Symbol 17 MovieClip |
"obst8" | Frame 1 | Symbol 17 MovieClip |
"obst9" | Frame 1 | Symbol 17 MovieClip |
"wallTop" | Frame 45 | Symbol 33 MovieClip |
"wallRig" | Frame 45 | Symbol 35 MovieClip |
"wallLef" | Frame 45 | Symbol 35 MovieClip |
"wallBot" | Frame 45 | Symbol 33 MovieClip |
"ball" | Frame 45 | Symbol 38 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "looserwav" |
Labels
"game" | Frame 45 |
Dynamic Text Variables
text | Symbol 37 EditableText | "" |
|