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

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

Mini Pool.swf

This is the info page for
Flash #23981

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


Text
<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">www.2DPlay.com</A></FONT></P>

Loading

presents

Left click to shoot.
Clear the table before the time expires
in order to advance to the next level.
The number on each ball (multiplied
by 10 seconds) represents the time.
Be careful with the pink ball.

Mini Pool

Start Game

Sound

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

-50 pts

Score:

Best score:

0

0

Restart

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

Pause

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

Congratulations!
You made it to the next
level.

GO!

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

You are the Pool Master!
Final Score:

000000

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">Click here to play more games like this.</A></FONT></P>

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2dplay.com/addgames.shtml" target = "_blank">Click here to add this game to your website.</A></FONT></P>

Oups! Time's Up!
Final Score:

000000

ActionScript [AS1/AS2]

Frame 1
fscommand ("showmenu", false); _root.best = 0; _root.sunet = 1; stop(); logo.onEnterFrame = function () { if (_root.getBytesLoaded() == _root.getBytesTotal()) { this.play(); } else { tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); this.progress.gotoAndStop(tgFrame); } };
Frame 2
stop(); _root.paused = 0; son = new Sound(); son.attachSound("shot1"); son2 = new Sound(); son2.attachSound("shot2"); son3 = new Sound(); son3.attachSound("shot3");
Frame 3
bestTXT.text = _root.best; _root.score = 0; scoreTXT.text = _root.score; i = 0; while (i <= 9) { _root["b" + i].timpIni = getTimer() + 120000; i++; } _root.b4.timpIni = getTimer() + 60000;
Frame 4
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 4
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 4
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 4
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b4) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 4
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 5
stop(); stop();
Frame 6
i = 0; while (i <= 9) { _root["b" + i].timpIni = getTimer() + 100000; i++; } _root.b4.timpIni = getTimer() + 50000;
Frame 7
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 7
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 7
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 7
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b4) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 7
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 8
stop(); stop();
Frame 9
i = 0; while (i <= 9) { _root["b" + i].timpIni = getTimer() + 90000; i++; } _root.b4.timpIni = getTimer() + 50000;
Frame 10
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 10
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 10
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 10
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b4) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 10
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 11
stop(); stop();
Frame 12
i = 0; while (i <= 9) { _root["b" + i].timpIni = getTimer() + 80000; i++; } _root.b4.timpIni = getTimer() + 10000;
Frame 13
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 13
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 13
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 13
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b4) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 13
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 14
stop(); stop();
Frame 15
i = 0; while (i <= 8) { _root["b" + i].timpIni = getTimer() + 70000; i++; } _root.b9.timpIni = getTimer() + 40000;
Frame 16
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 16
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 16
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 16
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b9) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 16
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 17
stop(); stop();
Frame 18
i = 0; while (i <= 8) { _root["b" + i].timpIni = (getTimer() + 40000) + ((8 - i) * 10000); i++; } _root.b9.timpIni = getTimer() + 30000;
Frame 19
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 19
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 19
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 19
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b9) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 19
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 20
stop(); stop();
Frame 21
i = 0; while (i <= 5) { _root["b" + i].timpIni = getTimer() + 30000; i++; } i = 6; while (i <= 8) { _root["b" + i].timpIni = getTimer() + 40000; i++; } _root.b9.timpIni = getTimer() + 50000;
Frame 22
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 22
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 22
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 22
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b9) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 22
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 23
stop(); stop();
Frame 24
i = 0; while (i <= 9) { _root["b" + i].timpIni = (getTimer() + 20000) + ((9 - i) * 10000); i++; }
Frame 25
stop(); ballsIn = 0;
Instance of Symbol 60 MovieClip "controller" in Frame 25
onClipEvent (load) { function getDistanceSquare(clip, clip2) { var xp = (clip._x - clip2._x); var yp = (clip._y - clip2._y); return((xp * xp) + (yp * yp)); } ballsArray = []; var n = 0; while (n < 11) { ballsArray[n] = _root["b" + n]; n++; } holesArray = []; var n = 1; while (n < 7) { holesArray[n - 1] = _root["h" + n]; n++; } var k = 0; while (k < ballsArray.length) { ballsArray[k].dx = 0; ballsArray[k].dy = 0; ballsArray[k].moving = false; ballsArray[k].disabled = false; k++; } diameter = _root.b10._width; diameterSquare = diameter * diameter; bgLeft = 48 + (diameter / 2); bgRight = 515 - (diameter / 2); bgTop = 55 + (diameter / 2); bgBottom = 345 - (diameter / 2); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (fsec > 70) { return(undefined); } var k = 0; while (k < ballsArray.length) { clip = ballsArray[k]; if (clip.moving == false) { } else if (clip.disabled) { } else if (clip.bounced) { } else { var m = 0; while (m < ballsArray.length) { clip2 = ballsArray[m]; if ((m <= k) && (clip2.moving)) { } else if (clip2.disabled) { } else { xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { clip.moving = true; clip2.moving = true; _root.bouncer.bounce(clip, clip2); } } m++; } var m = 0; while (m < holesArray.length) { clip2 = holesArray[m]; xoff = clip2._x - clip._x; yoff = clip2._y - clip._y; if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) { } else { fireN++; duplicateMovieClip (_root.fire, "fire" + fireN, fireN); _root["fire" + fireN].ball = clip; _root["fire" + fireN].hole = clip2; } m++; } } k++; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { t1 = getTimer(); fsec = t1 - t2; t2 = t1; var p = 0; while (p < ballsArray.length) { clip3 = ballsArray[p]; if (clip3.disabled) { } else if (clip3.moving == false) { } else { clip3.dx = clip3.dx - clip3.frictionX; clip3.dy = clip3.dy - clip3.frictionY; clip3._x = clip3._x + clip3.dx; clip3._y = clip3._y + clip3.dy; dx = clip3.dx; dy = clip3.dy; if (clip3._x < bgLeft) { clip3.dx = Math.abs(dx); clip3.frictionX = Math.abs(clip3.frictionX); } else if (clip3._x > bgRight) { clip3.dx = -Math.abs(dx); clip3.frictionX = -Math.abs(clip3.frictionX); } if (clip3._y < bgTop) { clip3.dy = Math.abs(dy); clip3.frictionY = Math.abs(clip3.frictionY); } else if (clip3._y > bgBottom) { clip3.dy = -Math.abs(dy); clip3.frictionY = -Math.abs(clip3.frictionY); } if (((dx * dx) + (dy * dy)) < 0.003) { clip3.dx = 0; clip3.dy = 0; clip3.frictionX = 0; clip3.frictionY = 0; clip3.moving = false; } } p++; } } }
Instance of Symbol 61 MovieClip "bouncer" in Frame 25
onClipEvent (load) { function bounce(clip, clip2) { var angle = Math.atan2(clip._y - clip2._y, clip._x - clip2._x); this._rotation = (angle * 180) / Math.PI; var pt2 = {x:clip2.dx * 10, y:clip2.dy * 10}; this.globalToLocal(pt2); var subVector2 = {x:pt2.x, y:0}; this.localToGlobal(subVector2); var pt = {x:clip.dx * 10, y:clip.dy * 10}; this.globalToLocal(pt); var subVector = {x:pt.x, y:0}; this.localToGlobal(subVector); if ((pt2.x <= 0) && (pt.x >= 0)) { return(undefined); } var xSub = ((subVector2.x - subVector.x) / 10); var ySub = ((subVector2.y - subVector.y) / 10); clip.dx = clip.dx + xSub; clip.dy = clip.dy + ySub; clip2.dx = clip2.dx - xSub; clip2.dy = clip2.dy - ySub; var ang = Math.atan2(clip.dy, clip.dx); clip.frictionX = Math.cos(ang) / 20; clip.frictionY = Math.sin(ang) / 20; var ang2 = Math.atan2(clip2.dy, clip2.dx); clip2.frictionX = Math.cos(ang2) / 20; clip2.frictionY = Math.sin(ang2) / 20; } }
Instance of Symbol 60 MovieClip "fire" in Frame 25
onClipEvent (load) { function startGoHole(clip, clip2) { ball.disabled = true; animate = true; framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy))); dx = (hole._x - ball._x) / framesNeed; dy = (hole._y - ball._y) / framesNeed; count = 0; } function conclude() { animate = false; ball.moving = false; ball._y = -300; if (ball == _root.b10) { hole.gotoAndPlay(20); } else { _root.ballsIn++; _root.score = _root.score + ball.timpul; _root.scoreTXT.text = _root.score; if (_root.score > _root.best) { _root.best = _root.score; } if (ball == _root.b9) { hole.gotoAndPlay(38); } else { hole.play(); } ball._visible = false; var balolInHole = -1; var k = 0; while (k < ballsArray.length) { if (ballsArray[k] == ball) { ballInHole = k; break; } k++; } if (_root.ballsIn >= 11) { _root.play(); } if (ballInHole > -1) { ballsArray.splice(ballInHole, 1); } } removeMovieClip(this); } startGoHole(); } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } ball._x = ball._x + dx; ball._y = ball._y + dy; count++; if (count >= framesNeed) { conclude(); } } }
Instance of Symbol 66 MovieClip in Frame 25
onClipEvent (load) { function conclude() { if (_root.sunet == 1) { _root.son.start(0, 1); } animate = false; rod._x = -(30 + (_root.b10._width / 2)); _rotation = 0; count = 0; _y = -100; } ballsArray = _root.controller.ballsArray; orgX = _root.b10._x; orgY = _root.b10._y; animate = false; conclude(); } onClipEvent (mouseDown) { if (_root.paused == 0) { if (_root.b10.disabled) { _root.b10.disabled = false; _root.b10._x = orgX; _root.b10._y = orgY; OK = false; while (!OK) { hit = false; var h = 0; while (h < (ballsArray.length - 1)) { tempClip = ballsArray[h]; if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) { hit = true; break; } h++; } if (hit) { _root.b10._x = _root.b10._x + 5; } else { OK = true; } } _root.b10.dx = 0; _root.b10.dy = 0; _root.b10.moving = false; return(undefined); } if (_root.b10.moving) { return(undefined); } _x = _root.b10._x; _y = _root.b10._y; dragging = true; angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } onClipEvent (mouseMove) { if (_root.paused == 0) { if (dragging) { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x); _rotation = ((angle * 180) / Math.PI); } } } onClipEvent (mouseUp) { if (_root.paused == 0) { if (dragging) { dragging = false; animate = true; count = 0; } } } onClipEvent (enterFrame) { if (_root.paused == 0) { if (!animate) { return(undefined); } count++; if (count > 12) { conclude(); } if (count == 6) { _root.b10.dx = 10 * Math.cos(angle); _root.b10.dy = 10 * Math.sin(angle); _root.b10.frictionX = _root.b10.dx / 200; _root.b10.frictionY = _root.b10.dy / 200; _root.b10.moving = true; } if (count < 6) { rod._x = rod._x + 5; } else { rod._x = rod._x - 5; } } }
Frame 26
stop(); fScore.text = _root.score; stop();
Frame 27
stop(); fScore.text = _root.score;
Symbol 11 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 63
stop();
Symbol 15 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 26 Button
on (release) { _root.gotoAndPlay("l1"); }
Symbol 29 Button
on (release) { if (_root.sunet == 0) { _root.sunet = 1; } else { _root.sunet = 0; } }
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
if (_root.sunet == 1) { _root.son3.start(0.7, 1); }
Symbol 43 MovieClip Frame 12
gotoAndStop (1);
Symbol 43 MovieClip Frame 20
if (_root.sunet == 1) { _root.son3.start(0.7, 1); if (_root.score > 50) { _root.score = _root.score - 50; _root.scoreTXT.text = _root.score; } }
Symbol 43 MovieClip Frame 30
gotoAndStop (1);
Symbol 43 MovieClip Frame 38
if (_root.sunet == 1) { _root.son2.start(5, 1); }
Symbol 43 MovieClip Frame 48
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () { if (_root.paused == 0) { timpul = Math.round((timpIni - getTimer()) / 1000); timpTXT = Math.round(timpul / 10); timp.text = timpTXT; if ((timp.text == "0") && (this._visible == 1)) { _root.gotoAndStop("gameOver"); } } };
Symbol 48 MovieClip Frame 1
this.onEnterFrame = function () { if (_root.paused == 0) { timpul = Math.round((timpIni - getTimer()) / 1000); timpTXT = Math.round(timpul / 10); timp.text = timpTXT; if ((timp.text == "0") && (this._visible == 1)) { _root.gotoAndStop("gameOver"); } } };
Symbol 54 Button
on (release) { _root.gotoAndStop(2); }
Symbol 57 Button
on (release) { if (_root.paused == 0) { oldTimp = getTimer(); _root.paused = 1; } else { timpInter = getTimer() - oldTimp; i = 0; while (i <= 9) { _root["b" + i].timpIni = _root["b" + i].timpIni + timpInter; i++; } _root.paused = 0; } }
Symbol 73 Button
on (release) { _root.play(); }
Symbol 129 Button
on (release) { _root.gotoAndStop(2); }

Library Items

Symbol 1 Sound [shot1]
Symbol 2 Sound [shot3]
Symbol 3 Sound [shot2]
Symbol 4 FontUsed by:5 14 30 31 55 58 62 63 67 68 76 77 78 79 80 81 84 85 86 87 88 89 92 93 94 95 96 97 100 101 102 103 104 105 108 109 110 111 112 113 115 117 118 119 120 122 124 125 126 127 132 133
Symbol 5 EditableTextUses:4 6Used by:Timeline
Symbol 6 FontUsed by:5 7 27 30 31 40 45 47 49 50 51 52 53 55 56 58 62 63 67 68 70 72 76 77 78 79 80 81 84 85 86 87 88 89 92 93 94 95 96 97 100 101 102 103 104 105 108 109 110 111 112 113 115 117 118 119 120 122 124 125 126 127 128 130 132 133 134 135
Symbol 7 TextUses:6Used by:15
Symbol 8 ShapeTweeningUsed by:11
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11 54 57
Symbol 11 MovieClipUses:8 9 10Used by:15
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:15
Symbol 14 TextUses:4Used by:15
Symbol 15 MovieClipUses:7 11 13 14Used by:Timeline
Symbol 16 BitmapUsed by:17
Symbol 17 GraphicUses:16Used by:Timeline
Symbol 18 GraphicUsed by:23
Symbol 19 FontUsed by:20 25
Symbol 20 TextUses:19Used by:23
Symbol 21 FontUsed by:22
Symbol 22 TextUses:21Used by:23
Symbol 23 MovieClipUses:18 20 22Used by:Timeline
Symbol 24 GraphicUsed by:26
Symbol 25 TextUses:19Used by:26
Symbol 26 ButtonUses:24 25Used by:Timeline
Symbol 27 TextUses:6Used by:29
Symbol 28 GraphicUsed by:29
Symbol 29 ButtonUses:27 28Used by:Timeline
Symbol 30 EditableTextUses:4 6Used by:Timeline
Symbol 31 EditableTextUses:4 6Used by:Timeline
Symbol 32 GraphicUsed by:Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 GraphicUsed by:43
Symbol 35 GraphicUsed by:43
Symbol 36 GraphicUsed by:37 46
Symbol 37 MovieClipUses:36Used by:43
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:43  Timeline
Symbol 40 TextUses:6Used by:43
Symbol 41 GraphicUsed by:42 48
Symbol 42 MovieClipUses:41Used by:43
Symbol 43 MovieClipUses:34 35 37 39 40 42Used by:Timeline
Symbol 44 GraphicUsed by:Timeline
Symbol 45 EditableTextUses:6Used by:46
Symbol 46 MovieClipUses:36 45Used by:Timeline
Symbol 47 EditableTextUses:6Used by:48
Symbol 48 MovieClipUses:41 47Used by:Timeline
Symbol 49 TextUses:6Used by:Timeline
Symbol 50 TextUses:6Used by:Timeline
Symbol 51 EditableTextUses:6Used by:Timeline
Symbol 52 EditableTextUses:6Used by:Timeline
Symbol 53 TextUses:6Used by:54
Symbol 54 ButtonUses:10 53Used by:Timeline
Symbol 55 EditableTextUses:4 6Used by:Timeline
Symbol 56 TextUses:6Used by:57
Symbol 57 ButtonUses:10 56Used by:Timeline
Symbol 58 EditableTextUses:4 6Used by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 MovieClipUsed by:Timeline
Symbol 62 EditableTextUses:4 6Used by:Timeline
Symbol 63 EditableTextUses:4 6Used by:Timeline
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:66
Symbol 66 MovieClipUses:65Used by:Timeline
Symbol 67 EditableTextUses:4 6Used by:Timeline
Symbol 68 EditableTextUses:4 6Used by:Timeline
Symbol 69 GraphicUsed by:Timeline
Symbol 70 TextUses:6Used by:Timeline
Symbol 71 GraphicUsed by:73 129
Symbol 72 TextUses:6Used by:73 129
Symbol 73 ButtonUses:71 72Used by:Timeline
Symbol 74 GraphicUsed by:Timeline
Symbol 75 GraphicUsed by:Timeline
Symbol 76 EditableTextUses:4 6Used by:Timeline
Symbol 77 EditableTextUses:4 6Used by:Timeline
Symbol 78 EditableTextUses:4 6Used by:Timeline
Symbol 79 EditableTextUses:4 6Used by:Timeline
Symbol 80 EditableTextUses:4 6Used by:Timeline
Symbol 81 EditableTextUses:4 6Used by:Timeline
Symbol 82 GraphicUsed by:Timeline
Symbol 83 GraphicUsed by:Timeline
Symbol 84 EditableTextUses:4 6Used by:Timeline
Symbol 85 EditableTextUses:4 6Used by:Timeline
Symbol 86 EditableTextUses:4 6Used by:Timeline
Symbol 87 EditableTextUses:4 6Used by:Timeline
Symbol 88 EditableTextUses:4 6Used by:Timeline
Symbol 89 EditableTextUses:4 6Used by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 GraphicUsed by:Timeline
Symbol 92 EditableTextUses:4 6Used by:Timeline
Symbol 93 EditableTextUses:4 6Used by:Timeline
Symbol 94 EditableTextUses:4 6Used by:Timeline
Symbol 95 EditableTextUses:4 6Used by:Timeline
Symbol 96 EditableTextUses:4 6Used by:Timeline
Symbol 97 EditableTextUses:4 6Used by:Timeline
Symbol 98 GraphicUsed by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 EditableTextUses:4 6Used by:Timeline
Symbol 101 EditableTextUses:4 6Used by:Timeline
Symbol 102 EditableTextUses:4 6Used by:Timeline
Symbol 103 EditableTextUses:4 6Used by:Timeline
Symbol 104 EditableTextUses:4 6Used by:Timeline
Symbol 105 EditableTextUses:4 6Used by:Timeline
Symbol 106 GraphicUsed by:Timeline
Symbol 107 GraphicUsed by:Timeline
Symbol 108 EditableTextUses:4 6Used by:Timeline
Symbol 109 EditableTextUses:4 6Used by:Timeline
Symbol 110 EditableTextUses:4 6Used by:Timeline
Symbol 111 EditableTextUses:4 6Used by:Timeline
Symbol 112 EditableTextUses:4 6Used by:Timeline
Symbol 113 EditableTextUses:4 6Used by:Timeline
Symbol 114 GraphicUsed by:Timeline
Symbol 115 EditableTextUses:4 6Used by:Timeline
Symbol 116 GraphicUsed by:Timeline
Symbol 117 EditableTextUses:4 6Used by:Timeline
Symbol 118 EditableTextUses:4 6Used by:Timeline
Symbol 119 EditableTextUses:4 6Used by:Timeline
Symbol 120 EditableTextUses:4 6Used by:Timeline
Symbol 121 GraphicUsed by:Timeline
Symbol 122 EditableTextUses:4 6Used by:Timeline
Symbol 123 GraphicUsed by:Timeline
Symbol 124 EditableTextUses:4 6Used by:Timeline
Symbol 125 EditableTextUses:4 6Used by:Timeline
Symbol 126 EditableTextUses:4 6Used by:Timeline
Symbol 127 EditableTextUses:4 6Used by:Timeline
Symbol 128 TextUses:6Used by:Timeline
Symbol 129 ButtonUses:71 72Used by:Timeline
Symbol 130 EditableTextUses:6Used by:Timeline
Symbol 131 GraphicUsed by:Timeline
Symbol 132 EditableTextUses:4 6Used by:Timeline
Symbol 133 EditableTextUses:4 6Used by:Timeline
Symbol 134 TextUses:6Used by:Timeline
Symbol 135 EditableTextUses:6Used by:Timeline

Instance Names

"logo"Frame 1Symbol 15 MovieClip
"h3"Frame 3Symbol 43 MovieClip
"h1"Frame 3Symbol 43 MovieClip
"h6"Frame 3Symbol 43 MovieClip
"h5"Frame 3Symbol 43 MovieClip
"h4"Frame 3Symbol 43 MovieClip
"h2"Frame 3Symbol 43 MovieClip
"b10"Frame 3Symbol 39 MovieClip
"b0"Frame 3Symbol 46 MovieClip
"b1"Frame 3Symbol 46 MovieClip
"b2"Frame 3Symbol 46 MovieClip
"b3"Frame 3Symbol 46 MovieClip
"b4"Frame 3Symbol 48 MovieClip
"b5"Frame 3Symbol 46 MovieClip
"b7"Frame 3Symbol 46 MovieClip
"b8"Frame 3Symbol 46 MovieClip
"b6"Frame 3Symbol 46 MovieClip
"b9"Frame 3Symbol 46 MovieClip
"scoreTXT"Frame 3Symbol 51 EditableText
"bestTXT"Frame 3Symbol 52 EditableText
"controller"Frame 4Symbol 60 MovieClip
"bouncer"Frame 4Symbol 61 MovieClip
"fire"Frame 4Symbol 60 MovieClip
"b10"Frame 6Symbol 39 MovieClip
"b0"Frame 6Symbol 46 MovieClip
"b1"Frame 6Symbol 46 MovieClip
"b2"Frame 6Symbol 46 MovieClip
"b3"Frame 6Symbol 46 MovieClip
"b4"Frame 6Symbol 48 MovieClip
"b5"Frame 6Symbol 46 MovieClip
"b7"Frame 6Symbol 46 MovieClip
"b8"Frame 6Symbol 46 MovieClip
"b6"Frame 6Symbol 46 MovieClip
"b9"Frame 6Symbol 46 MovieClip
"controller"Frame 7Symbol 60 MovieClip
"bouncer"Frame 7Symbol 61 MovieClip
"fire"Frame 7Symbol 60 MovieClip
"b10"Frame 9Symbol 39 MovieClip
"b0"Frame 9Symbol 46 MovieClip
"b1"Frame 9Symbol 46 MovieClip
"b2"Frame 9Symbol 46 MovieClip
"b3"Frame 9Symbol 46 MovieClip
"b4"Frame 9Symbol 48 MovieClip
"b5"Frame 9Symbol 46 MovieClip
"b7"Frame 9Symbol 46 MovieClip
"b8"Frame 9Symbol 46 MovieClip
"b6"Frame 9Symbol 46 MovieClip
"b9"Frame 9Symbol 46 MovieClip
"controller"Frame 10Symbol 60 MovieClip
"bouncer"Frame 10Symbol 61 MovieClip
"fire"Frame 10Symbol 60 MovieClip
"b10"Frame 12Symbol 39 MovieClip
"b0"Frame 12Symbol 46 MovieClip
"b1"Frame 12Symbol 46 MovieClip
"b2"Frame 12Symbol 46 MovieClip
"b3"Frame 12Symbol 46 MovieClip
"b4"Frame 12Symbol 48 MovieClip
"b5"Frame 12Symbol 46 MovieClip
"b7"Frame 12Symbol 46 MovieClip
"b8"Frame 12Symbol 46 MovieClip
"b6"Frame 12Symbol 46 MovieClip
"b9"Frame 12Symbol 46 MovieClip
"controller"Frame 13Symbol 60 MovieClip
"bouncer"Frame 13Symbol 61 MovieClip
"fire"Frame 13Symbol 60 MovieClip
"b10"Frame 15Symbol 39 MovieClip
"b0"Frame 15Symbol 46 MovieClip
"b1"Frame 15Symbol 46 MovieClip
"b2"Frame 15Symbol 46 MovieClip
"b3"Frame 15Symbol 46 MovieClip
"b4"Frame 15Symbol 46 MovieClip
"b7"Frame 15Symbol 46 MovieClip
"b8"Frame 15Symbol 46 MovieClip
"b6"Frame 15Symbol 46 MovieClip
"b5"Frame 15Symbol 46 MovieClip
"b9"Frame 15Symbol 48 MovieClip
"controller"Frame 16Symbol 60 MovieClip
"bouncer"Frame 16Symbol 61 MovieClip
"fire"Frame 16Symbol 60 MovieClip
"b10"Frame 18Symbol 39 MovieClip
"b0"Frame 18Symbol 46 MovieClip
"b1"Frame 18Symbol 46 MovieClip
"b2"Frame 18Symbol 46 MovieClip
"b3"Frame 18Symbol 46 MovieClip
"b4"Frame 18Symbol 46 MovieClip
"b7"Frame 18Symbol 46 MovieClip
"b8"Frame 18Symbol 46 MovieClip
"b6"Frame 18Symbol 46 MovieClip
"b5"Frame 18Symbol 46 MovieClip
"b9"Frame 18Symbol 48 MovieClip
"controller"Frame 19Symbol 60 MovieClip
"bouncer"Frame 19Symbol 61 MovieClip
"fire"Frame 19Symbol 60 MovieClip
"h2"Frame 21Symbol 43 MovieClip
"b10"Frame 21Symbol 39 MovieClip
"b0"Frame 21Symbol 46 MovieClip
"b1"Frame 21Symbol 46 MovieClip
"b2"Frame 21Symbol 46 MovieClip
"b3"Frame 21Symbol 46 MovieClip
"b4"Frame 21Symbol 46 MovieClip
"b7"Frame 21Symbol 46 MovieClip
"b8"Frame 21Symbol 46 MovieClip
"b6"Frame 21Symbol 46 MovieClip
"b5"Frame 21Symbol 46 MovieClip
"b9"Frame 21Symbol 48 MovieClip
"controller"Frame 22Symbol 60 MovieClip
"bouncer"Frame 22Symbol 61 MovieClip
"fire"Frame 22Symbol 60 MovieClip
"b10"Frame 24Symbol 39 MovieClip
"b0"Frame 24Symbol 46 MovieClip
"b1"Frame 24Symbol 46 MovieClip
"b2"Frame 24Symbol 46 MovieClip
"b3"Frame 24Symbol 46 MovieClip
"b4"Frame 24Symbol 46 MovieClip
"b7"Frame 24Symbol 46 MovieClip
"b8"Frame 24Symbol 46 MovieClip
"b6"Frame 24Symbol 46 MovieClip
"b5"Frame 24Symbol 46 MovieClip
"b9"Frame 24Symbol 48 MovieClip
"controller"Frame 25Symbol 60 MovieClip
"bouncer"Frame 25Symbol 61 MovieClip
"fire"Frame 25Symbol 60 MovieClip
"fScore"Frame 26Symbol 130 EditableText
"fScore"Frame 27Symbol 135 EditableText
"progress"Symbol 15 MovieClip Frame 1Symbol 11 MovieClip
"timp"Symbol 46 MovieClip Frame 1Symbol 45 EditableText
"timp"Symbol 48 MovieClip Frame 1Symbol 47 EditableText
"rod"Symbol 66 MovieClip Frame 1Symbol 65 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "shot1"
ExportAssets (56)Timeline Frame 1Symbol 2 as "shot3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "shot2"

Labels

"l1"Frame 3
"l2"Frame 6
"l3"Frame 9
"l4"Frame 12
"l5"Frame 15
"l6"Frame 18
"l7"Frame 21
"l8"Frame 24
"gameOver"Frame 27




http://swfchan.com/5/23981/info.shtml
Created: 25/5 -2019 17:02:54 Last modified: 25/5 -2019 17:02:54 Server time: 05/11 -2024 12:27:52