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

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

Mini Pool 2.swf

This is the info page for
Flash #12716

(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

-50 pts

NEW - Adjustable shot power.
NEW - New challenging levels.
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 2

Start Game

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

Sound

Score:

Best score:

0

0

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFF00"><A HREF="http://www.2DPlay.com/pages/freegames.html" target = "_blank">Add this game to your website.</A></FONT></P>

Restart

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

Pause

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

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

Congratulations!
You made it to the next
level.

GO!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="10" COLOR="#FFFFFF"><A HREF="http://www.2dplay.com" target = "_blank">More games by 2DPlay.com</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">More games by 2DPlay.com</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
this.onMouseDown = function () { if (_root.b10.moving == false) { _root.power.gotoAndPlay(1); } }; this.onMouseUp = function () { _root.power.stop(); }; 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;
Instance of Symbol 49 MovieClip "power" in Frame 3
onClipEvent (load) { this.gotoAndStop(1); }
Frame 4
stop(); ballsIn = 0;
Instance of Symbol 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 66 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 67 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 66 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 71 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.power._currentframe / 20); _root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20); _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 6 MovieClip [hitter] Frame 1
this.onMouseUp = function () { startAnimate = true; }; dp = 2; this.onEnterFrame = function () { if (startAnimate) { pos2 = int(pos / 6) + 1; this.rod._x = this.rod._x + this.dx; count++; if (count == 8) { _root.startBall(_rotation, pos2); this.dx = 0; return(undefined); } if (count > 16) { this.removeMovieClip(); } } else { this._rotation = 57.2957795130823 * Math.atan2(_root._ymouse - _y, _root._xmouse - _x); pos = pos + dp; ((pos > 60) ? ((dp = -2)) : null); ((pos < 1) ? ((dp = 2)) : null); rod._x = -20 - pos; this.dx = pos / 8; } };
Symbol 14 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 63
stop();
Symbol 18 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
if (_root.sunet == 1) { _root.son3.start(0.7, 1); }
Symbol 29 MovieClip Frame 12
gotoAndStop (1);
Symbol 29 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 29 MovieClip Frame 30
gotoAndStop (1);
Symbol 29 MovieClip Frame 38
if (_root.sunet == 1) { _root.son2.start(5, 1); }
Symbol 29 MovieClip Frame 48
gotoAndStop (1);
Symbol 38 Button
on (release) { _root.gotoAndPlay("l1"); }
Symbol 42 Button
on (release) { if (_root.sunet == 0) { _root.sunet = 1; } else { _root.sunet = 0; } }
Symbol 49 MovieClip Frame 1
if (kxx == null) { this.stop(); kxx = 1; }
Symbol 52 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 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 61 Button
on (release) { _root.gotoAndStop(2); }
Symbol 64 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 77 Button
on (release) { _root.play(); }
Symbol 114 Button
on (release) { _root.gotoAndStop(2); }

Library Items

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

Instance Names

"logo"Frame 1Symbol 18 MovieClip
"h3"Frame 2Symbol 29 MovieClip
"h1"Frame 2Symbol 29 MovieClip
"h6"Frame 2Symbol 29 MovieClip
"h5"Frame 2Symbol 29 MovieClip
"h4"Frame 2Symbol 29 MovieClip
"h2"Frame 2Symbol 29 MovieClip
"power"Frame 3Symbol 49 MovieClip
"h3"Frame 3Symbol 29 MovieClip
"h1"Frame 3Symbol 29 MovieClip
"h6"Frame 3Symbol 29 MovieClip
"h5"Frame 3Symbol 29 MovieClip
"h4"Frame 3Symbol 29 MovieClip
"h2"Frame 3Symbol 29 MovieClip
"b10"Frame 3Symbol 25 MovieClip
"b0"Frame 3Symbol 52 MovieClip
"b1"Frame 3Symbol 52 MovieClip
"b2"Frame 3Symbol 52 MovieClip
"b3"Frame 3Symbol 52 MovieClip
"b4"Frame 3Symbol 54 MovieClip
"b5"Frame 3Symbol 52 MovieClip
"b7"Frame 3Symbol 52 MovieClip
"b8"Frame 3Symbol 52 MovieClip
"b6"Frame 3Symbol 52 MovieClip
"b9"Frame 3Symbol 52 MovieClip
"scoreTXT"Frame 3Symbol 57 EditableText
"bestTXT"Frame 3Symbol 58 EditableText
"power"Frame 4Symbol 49 MovieClip
"controller"Frame 4Symbol 66 MovieClip
"bouncer"Frame 4Symbol 67 MovieClip
"fire"Frame 4Symbol 66 MovieClip
"power"Frame 6Symbol 49 MovieClip
"b10"Frame 6Symbol 25 MovieClip
"b0"Frame 6Symbol 52 MovieClip
"b1"Frame 6Symbol 52 MovieClip
"b2"Frame 6Symbol 52 MovieClip
"b3"Frame 6Symbol 52 MovieClip
"b4"Frame 6Symbol 54 MovieClip
"b5"Frame 6Symbol 52 MovieClip
"b7"Frame 6Symbol 52 MovieClip
"b8"Frame 6Symbol 52 MovieClip
"b6"Frame 6Symbol 52 MovieClip
"b9"Frame 6Symbol 52 MovieClip
"controller"Frame 7Symbol 66 MovieClip
"bouncer"Frame 7Symbol 67 MovieClip
"fire"Frame 7Symbol 66 MovieClip
"power"Frame 9Symbol 49 MovieClip
"b10"Frame 9Symbol 25 MovieClip
"b0"Frame 9Symbol 52 MovieClip
"b1"Frame 9Symbol 52 MovieClip
"b2"Frame 9Symbol 52 MovieClip
"b3"Frame 9Symbol 52 MovieClip
"b4"Frame 9Symbol 54 MovieClip
"b5"Frame 9Symbol 52 MovieClip
"b7"Frame 9Symbol 52 MovieClip
"b8"Frame 9Symbol 52 MovieClip
"b6"Frame 9Symbol 52 MovieClip
"b9"Frame 9Symbol 52 MovieClip
"controller"Frame 10Symbol 66 MovieClip
"bouncer"Frame 10Symbol 67 MovieClip
"fire"Frame 10Symbol 66 MovieClip
"power"Frame 12Symbol 49 MovieClip
"b10"Frame 12Symbol 25 MovieClip
"b0"Frame 12Symbol 52 MovieClip
"b1"Frame 12Symbol 52 MovieClip
"b2"Frame 12Symbol 52 MovieClip
"b3"Frame 12Symbol 52 MovieClip
"b4"Frame 12Symbol 54 MovieClip
"b5"Frame 12Symbol 52 MovieClip
"b7"Frame 12Symbol 52 MovieClip
"b8"Frame 12Symbol 52 MovieClip
"b6"Frame 12Symbol 52 MovieClip
"b9"Frame 12Symbol 52 MovieClip
"controller"Frame 13Symbol 66 MovieClip
"bouncer"Frame 13Symbol 67 MovieClip
"fire"Frame 13Symbol 66 MovieClip
"power"Frame 15Symbol 49 MovieClip
"b10"Frame 15Symbol 25 MovieClip
"b0"Frame 15Symbol 52 MovieClip
"b1"Frame 15Symbol 52 MovieClip
"b2"Frame 15Symbol 52 MovieClip
"b3"Frame 15Symbol 52 MovieClip
"b4"Frame 15Symbol 52 MovieClip
"b7"Frame 15Symbol 52 MovieClip
"b8"Frame 15Symbol 52 MovieClip
"b6"Frame 15Symbol 52 MovieClip
"b5"Frame 15Symbol 52 MovieClip
"b9"Frame 15Symbol 54 MovieClip
"controller"Frame 16Symbol 66 MovieClip
"bouncer"Frame 16Symbol 67 MovieClip
"fire"Frame 16Symbol 66 MovieClip
"power"Frame 18Symbol 49 MovieClip
"b10"Frame 18Symbol 25 MovieClip
"b0"Frame 18Symbol 52 MovieClip
"b1"Frame 18Symbol 52 MovieClip
"b2"Frame 18Symbol 52 MovieClip
"b3"Frame 18Symbol 52 MovieClip
"b4"Frame 18Symbol 52 MovieClip
"b7"Frame 18Symbol 52 MovieClip
"b8"Frame 18Symbol 52 MovieClip
"b6"Frame 18Symbol 52 MovieClip
"b5"Frame 18Symbol 52 MovieClip
"b9"Frame 18Symbol 54 MovieClip
"controller"Frame 19Symbol 66 MovieClip
"bouncer"Frame 19Symbol 67 MovieClip
"fire"Frame 19Symbol 66 MovieClip
"power"Frame 21Symbol 49 MovieClip
"h2"Frame 21Symbol 29 MovieClip
"b10"Frame 21Symbol 25 MovieClip
"b0"Frame 21Symbol 52 MovieClip
"b1"Frame 21Symbol 52 MovieClip
"b2"Frame 21Symbol 52 MovieClip
"b3"Frame 21Symbol 52 MovieClip
"b4"Frame 21Symbol 52 MovieClip
"b7"Frame 21Symbol 52 MovieClip
"b8"Frame 21Symbol 52 MovieClip
"b6"Frame 21Symbol 52 MovieClip
"b5"Frame 21Symbol 52 MovieClip
"b9"Frame 21Symbol 54 MovieClip
"controller"Frame 22Symbol 66 MovieClip
"bouncer"Frame 22Symbol 67 MovieClip
"fire"Frame 22Symbol 66 MovieClip
"power"Frame 24Symbol 49 MovieClip
"b10"Frame 24Symbol 25 MovieClip
"b0"Frame 24Symbol 52 MovieClip
"b1"Frame 24Symbol 52 MovieClip
"b2"Frame 24Symbol 52 MovieClip
"b3"Frame 24Symbol 52 MovieClip
"b4"Frame 24Symbol 52 MovieClip
"b7"Frame 24Symbol 52 MovieClip
"b8"Frame 24Symbol 52 MovieClip
"b6"Frame 24Symbol 52 MovieClip
"b5"Frame 24Symbol 52 MovieClip
"b9"Frame 24Symbol 54 MovieClip
"controller"Frame 25Symbol 66 MovieClip
"bouncer"Frame 25Symbol 67 MovieClip
"fire"Frame 25Symbol 66 MovieClip
"fScore"Frame 26Symbol 115 EditableText
"power"Frame 27Symbol 49 MovieClip
"fScore"Frame 27Symbol 119 EditableText
"rod"Symbol 6 MovieClip [hitter] Frame 1Symbol 5 MovieClip
"progress"Symbol 18 MovieClip Frame 1Symbol 14 MovieClip
"timp"Symbol 52 MovieClip Frame 1Symbol 51 EditableText
"timp"Symbol 54 MovieClip Frame 1Symbol 53 EditableText
"rod"Symbol 71 MovieClip Frame 1Symbol 70 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"
ExportAssets (56)Timeline Frame 1Symbol 6 as "hitter"

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/3/12716/info.shtml
Created: 5/6 -2019 16:06:55 Last modified: 5/6 -2019 16:06:55 Server time: 03/05 -2024 01:05:35