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

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

Monotone.swf

This is the info page for
Flash #46274

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


Text
MONOTONE

OPTIONS

CREDITS

Programming:  Danny S  (Phore_Eyes)
Concept:  Danny S  (Phore_Eyes)
Art:  Danny S  (Phore_Eyes)
Music:  www.freeplaymusic.com
Beta Testers:  Danny S  (Phore_Eyes),
Dan B  (Krumsnacha), Sam W  (Pucman),
Karsten R  (Pretty Pink Pwny), John I  (Italian
Stallion), Clay T  (GW4L),Chris S  (Unrickrollable),
Josh S  (Curly Moe), Braden S (BAD BOIIZZZ
BRODUkTIONS)

LEVEL SELECT

SCORE:

TIME:

LEVEL:

CALLS:

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999999</font></p>

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999</font></p>

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>

<p align="left"></p>

<p align="left"></p>

This is what
level you are on.

You can mute the
music from the
options menu.

This is how much time
is left before the level
is over.

This is your
current score.

You get 10 points
every second.

And 5 points for
every square that
you dodge.

<p align="left"></p>

<p align="left"></p>

Congratulations you have
unlocked the next level.

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999999</font></p>

<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>

You just complete all of the levels and
unlocked inverted mode.
(Go to options screen to turn it on)
Don't forget to see how far you can get
in endless mode.
Thanks for playing!

Congrats you've beaten
level 16 again.

ActionScript [AS1/AS2]

Frame 1
var _mochiads_game_id = "aa4feab25a7adda4"; mochi.MochiServices.connect("aa4feab25a7adda4"); MochiAd.showPreGameAd({id:"aa4feab25a7adda4", res:"500x500", background:16777215, color:0, outline:16777215, no_bg:true});
Instance of Symbol 4 MovieClip "end2" in Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 2
stop();
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("f9df7200", this, 10301, true); function deadClick() { } var highscore = 0; Monotone = SharedObject.getLocal("Monotone"); if (Monotone.data.level2u == undefined) { Monotone.data.level2u = 0; } if (Monotone.data.level3u == undefined) { Monotone.data.level3u = 0; } if (Monotone.data.level4u == undefined) { Monotone.data.level4u = 0; } if (Monotone.data.level5u == undefined) { Monotone.data.level5u = 0; } if (Monotone.data.level6u == undefined) { Monotone.data.level6u = 0; } if (Monotone.data.level7u == undefined) { Monotone.data.level7u = 0; } if (Monotone.data.level8u == undefined) { Monotone.data.level8u = 0; } if (Monotone.data.level9u == undefined) { Monotone.data.level9u = 0; } if (Monotone.data.level10u == undefined) { Monotone.data.level10u = 0; } if (Monotone.data.level11u == undefined) { Monotone.data.level11u = 0; } if (Monotone.data.level12u == undefined) { Monotone.data.level12u = 0; } if (Monotone.data.level13u == undefined) { Monotone.data.level13u = 0; } if (Monotone.data.level14u == undefined) { Monotone.data.level14u = 0; } if (Monotone.data.level15u == undefined) { Monotone.data.level15u = 0; } if (Monotone.data.level16u == undefined) { Monotone.data.level16u = 0; } if (Monotone.data.invertable == undefined) { Monotone.data.invertable = 0; } if (inverted == undefined) { var inverted = 0; } if (musical == undefined) { var musical = 1; } if (Monotone.data.musicplaying == 1) { musical = 1; music.play(); } if (Monotone.data.musicplaying == 0) { musical = 0; music.stop(); } if (tutorials == undefined) { var tutorials = 1; } if (Monotone.data.tutorialsplaying == 1) { tutorials = 1; } if (Monotone.data.tutorialsplaying == 0) { tutorials = 0; } if (ob == undefined) { var ob = 0; } if (Monotone.data.obthere == 1) { ob = 1; } if (Monotone.data.obthere == 0) { ob = 0; } if (hs == undefined) { var hs = 1; } if (Monotone.data.usehs == 1) { hs = 1; } if (Monotone.data.usehs == 0) { hs = 0; } if (Monotone.data.inver == 1) { inverted = 1; } if (Monotone.data.inver == 0) { inverted = 0; } var score = 0; var time = 0; var calls = 3; var level = 0; stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem("\u00A9 2008 Phore_Eyes Media", deadClick); myMenu.customItems.push(mySiteLink, copyrightNotice); _root.menu = myMenu; copyrightNotice.separatorBefore = true;
Instance of Symbol 10 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 250; this._y = 250; } else { this._x = 9999; this._y = 9999; } }
Instance of Symbol 28 MovieClip "lck" in Frame 3
onClipEvent (enterFrame) { if (Monotone.data.invertable == 1) { this._x = 9999; } else { this._x = 134.9; this._y = 462.9; } if (_root.ob == 0) { this._x = 9999; } else { this._x = 134.9; this._y = 462.9; } }
Instance of Symbol 30 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.ob == 0) { _root.mute._x = 9999; _root.tut._x = 9999; _root.high._x = 9999; _root.inv._x = 9999; _root.lck._x = 9999; } else { _root.mute._x = 3.4; _root.mute._y = 468.3; _root.tut._x = 54.3; _root.tut._y = 464.1; _root.high._x = 92; _root.high._y = 462.5; } if (_root.Monotone.data.invertable == 0) { _root.inv._x = 9999; _root.blkr._x = 9999; } if ((_root.Monotone.data.invertable == 0) && (_root.ob == 1)) { _root.lck._x = 132.9; _root.lck._y = 460.9; } if ((_root.Monotone.data.invertable == 1) && (_root.ob == 1)) { _root.inv._x = 132.9; _root.inv._y = 460.9; } }
Instance of Symbol 31 MovieClip "blocker" in Frame 3
onClipEvent (enterFrame) { if (_root.musical == 1) { this._x = 9999; } else { this._x = 28.8; this._y = 467.4; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } if (_root.ob == 0) { this._x = 9999; } }
Instance of Symbol 33 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.tutorials == 1) { this._x = 9999; } else { this._x = 56; this._y = 465.1; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } if (_root.ob == 0) { this._x = 9999; } }
Instance of Symbol 36 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.hs == 1) { this._x = 9999; } else { this._x = 93.2; this._y = 463.7; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } if (_root.ob == 0) { this._x = 9999; } }
Instance of Symbol 38 MovieClip "blkr" in Frame 3
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; } else { this._x = 132.9; this._y = 460; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } if (_root.ob == 0) { this._x = 9999; } }
Instance of Symbol 40 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.inverted == 0) { this._x = 9999; } else { this._x = 132.9; this._y = 460.9; } if (_root.ob == 0) { this._x = 9999; } }
Frame 4
if (hs == 1) { highscore = 1; } score = 0; p = 0; time = 0; calls = 3; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; stop();
Instance of Symbol 216 MovieClip "ball" in Frame 4
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.p == 0) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + ((Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1) * 0.5); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + ((Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1) * 0.5); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + ((Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12) * 0.5); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + ((Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12) * 0.5); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + ((Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13) * 0.5); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + ((Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13) * 0.5); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + ((Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14) * 0.5); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + ((Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14) * 0.5); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + ((Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15) * 0.5); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + ((Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15) * 0.5); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); if (((distance5 <= 27) && (distance5 > 24)) && (this._x > _root.ball6._x)) { this._x = this._x + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x > _root.ball6._x)) { this._x = this._x + 6; } if ((distance5 <= 20) && (this._x > _root.ball6._x)) { this._x = this._x + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._x < _root.ball6._x)) { this._x = this._x - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x < _root.ball6._x)) { this._x = this._x - 6; } if ((distance5 <= 20) && (this._x < _root.ball6._x)) { this._x = this._x - 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y + 6; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y - 3; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y - 10; } } } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 4
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.p == 0) { if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 40)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 160)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 320)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 1280)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 2560)) { moveable = 1; } if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; if (_root.ball._y <= 125) { _root.score = _root.score + 100; } } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Instance of Symbol 222 MovieClip "pentagon" in Frame 4
onClipEvent (enterFrame) { if (_root.p == 0) { this._alpha = this._alpha + 4; if ((this._x == 9999) && (_root.time == 20)) { this._x = 250; this._alpha = 0; } if ((this._x == 9999) && (_root.time == 80)) { this._x = 250; this._alpha = 0; } if ((this._x == 9999) && (_root.time == 320)) { this._x = 250; this._alpha = 0; } if ((this._x == 9999) && (_root.time == 640)) { this._x = 250; this._alpha = 0; } if ((this._x == 9999) && (_root.time == 1280)) { this._x = 250; this._alpha = 0; } if ((this._x == 9999) && (_root.time == 2560)) { this._x = 250; this._alpha = 0; } } }
Instance of Symbol 228 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.time == 0) { if (_root.tutorials == 1) { play(); } } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 5) { this.play(); } } }
Instance of Symbol 236 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 10) { this.play(); } } }
Instance of Symbol 240 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 25) { this.play(); } } }
Instance of Symbol 248 MovieClip "pacman" in Frame 4
onClipEvent (load) { this._x = -45; speed = Math.round(Math.random() * 5) + 5; } onClipEvent (enterFrame) { if (_root.p == 0) { if (Key.isDown(32) && (_root.calls > 0)) { go = 1; } if (go == 1) { this._x = this._x + speed; } if (this._x > 550) { speed = Math.round(Math.random() * 5) + 5; this._x = -45; go = 0; _root.calls = _root.calls - 1; } if (this._x == -45) { this._y = _root._ymouse; } } }
Instance of Symbol 219 MovieClip "ball6" in Frame 4
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.p == 0) { if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 640)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 1280)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 2560)) { moveable = 1; } if (_root.time >= 320) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } } }
Instance of Symbol 219 MovieClip "ball5" in Frame 4
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.p == 0) { if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 160)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 320)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 640)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 1280)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 2560)) { moveable = 1; } if (_root.time >= 80) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } } }
Instance of Symbol 219 MovieClip "ball4" in Frame 4
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.p == 0) { if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 160)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 320)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 640)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 1280)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 2560)) { moveable = 1; } if (_root.time >= 40) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } } }
Instance of Symbol 219 MovieClip "ball3" in Frame 4
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.p == 0) { if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 40)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 160)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 320)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 1280)) { moveable = 1; } if (((this._x == 9999) && (this._y == 9999)) && (_root.time == 2560)) { moveable = 1; } if (_root.time >= 10) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 10) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 40) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 1280) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 2560) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 10) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 10) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 10) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 10) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 40) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 40) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 40) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 40) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 80) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 160) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 320) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 640) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 1280) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 1280) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 1280) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 1280) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 2560) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 2560) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 2560) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (load) { speed = 3; } onClipEvent (enterFrame) { if (_root.time >= 2560) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if ((this._y >= 508) && (_root.ball._y <= 125)) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 10; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } } }
Instance of Symbol 265 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 15) { this.play(); } } }
Instance of Symbol 267 MovieClip in Frame 4
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 5
stop(); onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { lineStyle(5); moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } };
Frame 6
score = 0; time = 20; calls = 0; level = 1; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; stop(); highscore = 0;
Instance of Symbol 216 MovieClip "ball" in Frame 6
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 299 MovieClip in Frame 6
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 303 MovieClip in Frame 6
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 15) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 306 MovieClip in Frame 6
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 9) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 6
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Frame 7
stop(); highscore = 0; calls = 0; score = 0; level = 2; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; time = 10;
Instance of Symbol 216 MovieClip "ball" in Frame 7
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball3" in Frame 7
onClipEvent (load) { speed_limit = 5; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (this._x <= 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x >= 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y <= 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y >= 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 7
onClipEvent (load) { speed_limit = 5; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (this._x <= 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x >= 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y <= 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y >= 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 222 MovieClip "pentagon" in Frame 7
onClipEvent (enterFrame) { if (this._x == 9999) { _root.end._x = 250; _root.end._y = 250; _root.end.play(1); } }
Instance of Symbol 309 MovieClip in Frame 7
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 312 MovieClip in Frame 7
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 6) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 248 MovieClip "pacman" in Frame 7
onClipEvent (load) { this._x = -45; speed = Math.round(Math.random() * 5) + 5; } onClipEvent (enterFrame) { if (Key.isDown(32) && (_root.calls > 0)) { go = 1; } if (go == 1) { this._x = this._x + speed; } if (this._x > 550) { speed = Math.round(Math.random() * 5) + 5; this._x = -45; go = 0; _root.calls = _root.calls - 1; } if (this._x == -45) { this._y = _root._ymouse; } }
Frame 8
stop(); highscore = 0; level = 3; onEnterFrame = function () { if (calls == 0) { end._x = 250; end._y = 250; end.play(); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 20; calls = 1;
Instance of Symbol 216 MovieClip "ball" in Frame 8
onClipEvent (load) { var colorful = new Color(this); } onClipEvent (enterFrame) { if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } } onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); if (((distance5 <= 27) && (distance5 > 24)) && (this._x > _root.ball6._x)) { this._x = this._x + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x > _root.ball6._x)) { this._x = this._x + 6; } if ((distance5 <= 20) && (this._x > _root.ball6._x)) { this._x = this._x + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._x < _root.ball6._x)) { this._x = this._x - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x < _root.ball6._x)) { this._x = this._x - 6; } if ((distance5 <= 20) && (this._x < _root.ball6._x)) { this._x = this._x - 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y + 6; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y - 3; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y - 10; } } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 8
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.end2._x = 250; _root.end2._y = 250; _root.end2.play(1); moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 8
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.end2._x = 250; _root.end2._y = 250; _root.end2.play(1); moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 8
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.end2._x = 250; _root.end2._y = 250; _root.end2.play(1); moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 8
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.end2._x = 250; _root.end2._y = 250; _root.end2.play(1); moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball6" in Frame 8
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.end2._x = 250; _root.end2._y = 250; _root.end2.play(1); _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 315 MovieClip in Frame 8
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 9
stop(); highscore = 0; level = 4; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 40; calls = 3;
Instance of Symbol 216 MovieClip "ball" in Frame 9
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball3" in Frame 9
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 9
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 318 MovieClip in Frame 9
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 321 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 35) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 324 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 10) { this.play(); } } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 9
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 327 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 20) { this.play(); } } }
Frame 10
stop(); highscore = 0; level = 5; onEnterFrame = function () { if (score >= 750) { end2._x = 250; end2._y = 250; end2.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 0; calls = 0;
Instance of Symbol 216 MovieClip "ball" in Frame 10
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 330 MovieClip in Frame 10
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 333 MovieClip in Frame 10
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if ((_root.score > 245) && (_root.score <= 255)) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 336 MovieClip in Frame 10
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 20) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 340 MovieClip in Frame 10
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 25) { this.play(); } } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 251 MovieClip in Frame 10
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 10
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 10
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 10
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 10
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Frame 11
stop(); highscore = 0; levelover = 0; level = 6; onEnterFrame = function () { if (score >= 1000) { end2.play(1); end2._x = 250; end2._y = 250; } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 0; calls = 2;
Instance of Symbol 216 MovieClip "ball" in Frame 11
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); if (((distance5 <= 27) && (distance5 > 24)) && (this._x > _root.ball6._x)) { this._x = this._x + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x > _root.ball6._x)) { this._x = this._x + 6; } if ((distance5 <= 20) && (this._x > _root.ball6._x)) { this._x = this._x + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._x < _root.ball6._x)) { this._x = this._x - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x < _root.ball6._x)) { this._x = this._x - 6; } if ((distance5 <= 20) && (this._x < _root.ball6._x)) { this._x = this._x - 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y + 6; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y - 3; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y - 10; } } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 11
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 11
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 11
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball6" in Frame 11
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 11
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 343 MovieClip in Frame 11
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 248 MovieClip "pacman" in Frame 11
onClipEvent (load) { this._x = -45; speed = Math.round(Math.random() * 5) + 5; } onClipEvent (enterFrame) { if (Key.isDown(32) && (_root.calls > 0)) { go = 1; } if (go == 1) { this._x = this._x + speed; } if (this._x > 550) { speed = Math.round(Math.random() * 5) + 5; this._x = -45; go = 0; _root.calls = _root.calls - 1; } if (this._x == -45) { this._y = _root._ymouse; } }
Frame 12
stop(); highscore = 0; level = 7; levelover = 0; onEnterFrame = function () { if ((levelover == 3) && (score >= 500)) { end2.play(1); end2._x = 250; end2._y = 250; } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 5; time = 40;
Instance of Symbol 216 MovieClip "ball" in Frame 12
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { if (_root.time == 0) { _root.end._x = 250; _root.end._y = 250; _root.end.play(1); } x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 12
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 12
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 12
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 346 MovieClip in Frame 12
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 13
stop(); level = 8; highscore = 0; onEnterFrame = function () { if (score >= 750) { end2._x = 250; end2._y = 250; end2.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 1; time = 20;
Instance of Symbol 216 MovieClip "ball" in Frame 13
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); if (((distance5 <= 27) && (distance5 > 24)) && (this._x > _root.ball6._x)) { this._x = this._x + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x > _root.ball6._x)) { this._x = this._x + 6; } if ((distance5 <= 20) && (this._x > _root.ball6._x)) { this._x = this._x + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._x < _root.ball6._x)) { this._x = this._x - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x < _root.ball6._x)) { this._x = this._x - 6; } if ((distance5 <= 20) && (this._x < _root.ball6._x)) { this._x = this._x - 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y + 6; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y - 3; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y - 10; } } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 13
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 13
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 13
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 13
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball6" in Frame 13
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 222 MovieClip "pentagon" in Frame 13
onClipEvent (enterFrame) { if (this._x == 9999) { _root.end._x = 250; _root.end._y = 250; _root.end.play(1); } }
Instance of Symbol 349 MovieClip in Frame 13
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 14
stop(); highscore = 0; level = 9; onEnterFrame = function () { if (time == 0) { end2._x = 250; end2._y = 250; end2.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 20; calls = 2;
Instance of Symbol 216 MovieClip "ball" in Frame 14
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 14
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 14
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 14
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 14
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 352 MovieClip in Frame 14
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 14
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Frame 15
stop(); highscore = 0; levelover = 0; level = 10; onEnterFrame = function () { if (levelover == 4) { end2.play(1); end2._x = 250; end2._y = 250; } if ((levelover < 4) && (calls == 0)) { end._x = 250; end._y = 250; end.play(); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 40; calls = 3;
Instance of Symbol 216 MovieClip "ball" in Frame 15
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 15
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 15
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 15
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 15
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } if (this.hitTest(_root.pentagon._x + 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 12, _root.pentagon._y - 3)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x + 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x - 7, _root.pentagon._y + 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } if (this.hitTest(_root.pentagon._x, _root.pentagon._y - 12)) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 355 MovieClip in Frame 15
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 16
stop(); highscore = 0; level = 11; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 0; time = 30;
Instance of Symbol 216 MovieClip "ball" in Frame 16
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 16
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 16
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 16
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 222 MovieClip "pentagon" in Frame 16
onClipEvent (enterFrame) { if (this._x == 9999) { _root.end._x = 250; _root.end._y = 250; _root.end.play(1); } }
Instance of Symbol 358 MovieClip in Frame 16
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 219 MovieClip "ball5" in Frame 16
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Instance of Symbol 251 MovieClip in Frame 16
onClipEvent (load) { speed = 3; this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * -500); } onClipEvent (enterFrame) { xdiff = _root.ball._x - (this._x - 12.5); ydiff = _root.ball._y - (this._y - 12.5); distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff2 = _root.ball._x - (this._x + 12.5); ydiff2 = _root.ball._y - (this._y - 12.5); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance2 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff3 = _root.ball._x - (this._x - 12.5); ydiff3 = _root.ball._y - (this._y + 12.5); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance3 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff4 = _root.ball._x - (this._x + 12.5); ydiff4 = _root.ball._y - (this._y + 12.5); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance4 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff5 = _root.ball._x - (this._x + 12.5); ydiff5 = _root.ball._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance5 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff6 = _root.ball._x - (this._x - 12.5); ydiff6 = _root.ball._y - this._y; distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance6 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff7 = _root.ball._x - this._x; ydiff7 = _root.ball._y - (this._y + 12.5); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance7 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } xdiff8 = _root.ball._x - this._x; ydiff8 = _root.ball._y - (this._y - 12.5); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.end.play(1); _root.end._x = 250; _root.end._y = 250; } if ((distance8 <= 12.5) && (_root.ball.explodeable == 0)) { _root.ball.play(); } if (this._y <= -30) { speed = Math.round(Math.random() * 5); this._y = this._y + speed; } else { this._y = this._y + speed; } if (this._y >= 508) { this._y = Math.round(Math.random() * -30); this._x = Math.round(Math.random() * 500); _root.score = _root.score + 5; } }
Frame 17
stop(); highscore = 0; level = 12; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 2; time = 45;
Instance of Symbol 216 MovieClip "ball" in Frame 17
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (_root.time <= 0) { _root.end2.play(1); _root.end2._x = 250; _root.end2._y = 250; } if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 318 MovieClip in Frame 17
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 361 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.tutorials == 1) { if (_root.time == 15) { this.play(); } } }
Frame 18
stop(); highscore = 0; level = 13; levelover = 0; onEnterFrame = function () { if (time <= 0) { end._x = 250; end._y = 250; end.play(1); } if ((levelover == 4) && (score >= 1000)) { end2._x = 250; end2._y = 250; end2.play(1); } if ((levelover < 4) && (calls == 0)) { end._x = 250; end._y = 250; end.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 4; time = 60;
Instance of Symbol 216 MovieClip "ball" in Frame 18
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 18
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 18
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 18
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 18
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 364 MovieClip in Frame 18
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 19
stop(); highscore = 0; level = 14; levelover = 0; onEnterFrame = function () { if ((time <= 0) && (levelover == 1)) { end2._x = 250; end2._y = 250; end2.play(1); } if ((time <= 0) && (levelover == 0)) { end._x = 250; end._y = 250; end.play(1); } if ((levelover == 0) && (calls == 0)) { end._x = 250; end._y = 250; end.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; time = 45; calls = 2;
Instance of Symbol 216 MovieClip "ball" in Frame 19
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 19
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 10; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 9) + 1; yspeed = Math.round(Math.random() * 9) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 367 MovieClip in Frame 19
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 222 MovieClip "pentagon" in Frame 19
onClipEvent (enterFrame) { if (this._x == 9999) { _root.end._x = 250; _root.end._y = 250; _root.end.play(1); } }
Instance of Symbol 219 MovieClip "ball5" in Frame 19
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (_root.levelover >= 1) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Instance of Symbol 219 MovieClip "ball3" in Frame 19
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (_root.levelover >= 1) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Instance of Symbol 219 MovieClip "ball4" in Frame 19
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 4) + 1; yspeed = Math.round(Math.random() * 4) + 1; } onClipEvent (enterFrame) { if (_root.levelover >= 1) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Frame 20
stop(); highscore = 0; level = 15; onEnterFrame = function () { if (score >= 1000) { end2._x = 250; end2._y = 250; end2.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 0; time = 0;
Instance of Symbol 216 MovieClip "ball" in Frame 20
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); if (((distance5 <= 27) && (distance5 > 24)) && (this._x > _root.ball6._x)) { this._x = this._x + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x > _root.ball6._x)) { this._x = this._x + 6; } if ((distance5 <= 20) && (this._x > _root.ball6._x)) { this._x = this._x + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._x < _root.ball6._x)) { this._x = this._x - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._x < _root.ball6._x)) { this._x = this._x - 6; } if ((distance5 <= 20) && (this._x < _root.ball6._x)) { this._x = this._x - 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y + 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y + 6; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y + 10; } if (((distance5 <= 27) && (distance5 > 24)) && (this._y > _root.ball6._y)) { this._y = this._y - 4; } if (((distance5 <= 24) && (distance5 >= 21)) && (this._y > _root.ball6._y)) { this._y = this._y - 3; } if ((distance5 <= 20) && (this._y > _root.ball6._y)) { this._y = this._y - 10; } } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 20
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 20
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball4" in Frame 20
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball5" in Frame 20
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball6" in Frame 20
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 370 MovieClip in Frame 20
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 21
stop(); highscore = 0; level = 16; levelover = 0; onEnterFrame = function () { if ((levelover == 2) && (score >= 1000)) { end3._x = 250; end3._y = 250; end3.play(1); } if ((levelover == 2) && (calls == 1)) { calls = 0; } if ((levelover <= 1) && (calls == 0)) { end._x = 250; end._y = 250; end.play(1); } with (createEmptyMovieClip("line", 1)) { var colorful = new Color("line"); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if (ball.lineable == 0) { lineStyle(5); moveTo(_root._xmouse, _root._ymouse); lineTo(ball._x, ball._y); } else { moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } } }; score = 0; calls = 2; time = 0;
Instance of Symbol 216 MovieClip "ball" in Frame 21
onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { if (this.lineable == 0) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); if (((distance <= 27) && (distance > 24)) && (this._x > _root.ball2._x)) { this._x = this._x + 4; } if (((distance <= 24) && (distance >= 21)) && (this._x > _root.ball2._x)) { this._x = this._x + 6; } if ((distance <= 20) && (this._x > _root.ball2._x)) { this._x = this._x + 10; } if (((distance <= 27) && (distance > 24)) && (this._x < _root.ball2._x)) { this._x = this._x - 4; } if (((distance <= 24) && (distance >= 21)) && (this._x < _root.ball2._x)) { this._x = this._x - 6; } if ((distance <= 20) && (this._x < _root.ball2._x)) { this._x = this._x - 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y + 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y + 6; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y + 10; } if (((distance <= 27) && (distance > 24)) && (this._y > _root.ball2._y)) { this._y = this._y - 4; } if (((distance <= 24) && (distance >= 21)) && (this._y > _root.ball2._y)) { this._y = this._y - 3; } if ((distance <= 20) && (this._y > _root.ball2._y)) { this._y = this._y - 10; } } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); if (((distance2 <= 27) && (distance2 > 24)) && (this._x > _root.ball3._x)) { this._x = this._x + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x > _root.ball3._x)) { this._x = this._x + 6; } if ((distance2 <= 20) && (this._x > _root.ball3._x)) { this._x = this._x + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._x < _root.ball3._x)) { this._x = this._x - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._x < _root.ball3._x)) { this._x = this._x - 6; } if ((distance2 <= 20) && (this._x < _root.ball3._x)) { this._x = this._x - 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y + 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y + 6; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y + 10; } if (((distance2 <= 27) && (distance2 > 24)) && (this._y > _root.ball3._y)) { this._y = this._y - 4; } if (((distance2 <= 24) && (distance2 >= 21)) && (this._y > _root.ball3._y)) { this._y = this._y - 3; } if ((distance2 <= 20) && (this._y > _root.ball3._y)) { this._y = this._y - 10; } } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); if (((distance3 <= 27) && (distance3 > 24)) && (this._x > _root.ball4._x)) { this._x = this._x + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x > _root.ball4._x)) { this._x = this._x + 6; } if ((distance3 <= 20) && (this._x > _root.ball4._x)) { this._x = this._x + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._x < _root.ball4._x)) { this._x = this._x - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._x < _root.ball4._x)) { this._x = this._x - 6; } if ((distance3 <= 20) && (this._x < _root.ball4._x)) { this._x = this._x - 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y + 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y + 6; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y + 10; } if (((distance3 <= 27) && (distance3 > 24)) && (this._y > _root.ball4._y)) { this._y = this._y - 4; } if (((distance3 <= 24) && (distance3 >= 21)) && (this._y > _root.ball4._y)) { this._y = this._y - 3; } if ((distance3 <= 20) && (this._y > _root.ball4._y)) { this._y = this._y - 10; } } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); if (((distance4 <= 27) && (distance4 > 24)) && (this._x > _root.ball5._x)) { this._x = this._x + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x > _root.ball5._x)) { this._x = this._x + 6; } if ((distance4 <= 20) && (this._x > _root.ball5._x)) { this._x = this._x + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._x < _root.ball5._x)) { this._x = this._x - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._x < _root.ball5._x)) { this._x = this._x - 6; } if ((distance4 <= 20) && (this._x < _root.ball5._x)) { this._x = this._x - 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y + 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y + 6; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y + 10; } if (((distance4 <= 27) && (distance4 > 24)) && (this._y > _root.ball5._y)) { this._y = this._y - 4; } if (((distance4 <= 24) && (distance4 >= 21)) && (this._y > _root.ball5._y)) { this._y = this._y - 3; } if ((distance4 <= 20) && (this._y > _root.ball5._y)) { this._y = this._y - 10; } } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } } }
Instance of Symbol 219 MovieClip "ball2" in Frame 21
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 219 MovieClip "ball3" in Frame 21
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.levelover == 2) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Instance of Symbol 219 MovieClip "ball4" in Frame 21
onClipEvent (load) { speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (_root.levelover == 2) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } } }
Instance of Symbol 219 MovieClip "ball5" in Frame 21
onClipEvent (load) { this._x = Math.round(Math.random() * 500); this._y = Math.round(Math.random() * 500); if ((((this._x >= 175) && (this._x <= 325)) && (this._y <= 325)) && (this._y >= 175)) { this._x = Math.round(Math.random() * 50); this._y = Math.round(Math.random() * 50); } speed_limit = 5; mass = 1; moveable = 1; xspeed = Math.round(Math.random() * 2) + 1; yspeed = Math.round(Math.random() * 2) + 1; } onClipEvent (enterFrame) { if (moveable == 1) { if (this._x < 12.5) { this._x = 12.5; this.xspeed = this.xspeed * -1; } else if (this._x > 487.5) { this._x = 487.5; this.xspeed = this.xspeed * -1; } if (this._y < 12.5) { this._y = 12.5; this.yspeed = this.yspeed * -1; } else if (this._y > 487.5) { this._y = 487.5; this.yspeed = this.yspeed * -1; } if (this.xspeed > speed_limit) { this.xspeed = speed_limit; } if (this.xspeed < (speed_limit * -1)) { this.xspeed = speed_limit * -1; } if (this.yspeed > speed_limit) { this.yspeed = speed_limit; } if (this.yspeed < (speed_limit * -1)) { this.yspeed = speed_limit * -1; } this._x = this._x + this.xspeed; this._y = this._y + this.yspeed; } xdiff = _root.pacman._x - this._x; ydiff = _root.pacman._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 50) { _root.levelover = _root.levelover + 1; moveable = 0; _root.score = _root.score + 100; this._x = 9999; this._y = 9999; } xdiff2 = this._x - (_root.pentagon._x + 12); ydiff2 = this._y - (_root.pentagon._y - 4); distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff3 = this._x - (_root.pentagon._x - 14); ydiff3 = this._y - (_root.pentagon._y - 4); distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff4 = this._x - (_root.pentagon._x - 1); ydiff4 = this._y - (_root.pentagon._y - 14); distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff5 = this._x - (_root.pentagon._x + 7); ydiff5 = this._y - (_root.pentagon._y + 12); distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff6 = this._x - (_root.pentagon._x - 9); ydiff6 = this._y - (_root.pentagon._y + 12); distance6 = Math.sqrt((xdiff6 * xdiff6) + (ydiff6 * ydiff6)); if (distance6 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff7 = this._x - (_root.pentagon._x - 1); ydiff7 = this._y - (_root.pentagon._y + 12); distance7 = Math.sqrt((xdiff7 * xdiff7) + (ydiff7 * ydiff7)); if (distance7 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff8 = this._x - (_root.pentagon._x + 10); ydiff8 = this._y - (_root.pentagon._y + 3); distance8 = Math.sqrt((xdiff8 * xdiff8) + (ydiff8 * ydiff8)); if (distance8 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff9 = this._x - (_root.pentagon._x - 12); ydiff9 = this._y - (_root.pentagon._y + 4); distance9 = Math.sqrt((xdiff9 * xdiff9) + (ydiff9 * ydiff9)); if (distance9 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff10 = this._x - (_root.pentagon._x + 6); ydiff10 = this._y - (_root.pentagon._y - 9); distance10 = Math.sqrt((xdiff10 * xdiff10) + (ydiff10 * ydiff10)); if (distance10 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } xdiff11 = this._x - (_root.pentagon._x - 9); ydiff11 = this._y - (_root.pentagon._y - 9); distance11 = Math.sqrt((xdiff11 * xdiff11) + (ydiff11 * ydiff11)); if (distance11 <= 12.5) { _root.score = _root.score / 2; _root.pentagon._x = 9999; } }
Instance of Symbol 373 MovieClip in Frame 21
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Frame 22
stop(); onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { lineStyle(5); moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } };
Instance of Symbol 216 MovieClip "ball" in Frame 22
onClipEvent (load) { mass = 1; inertia = 0.9; ki = 0.1; x1 = 33; y1 = 33; } onClipEvent (enterFrame) { x = (-_x) + _root._xmouse; y = (-_y) + _root._ymouse; x1 = (x1 * inertia) + (x * ki); y1 = (y1 * inertia) + (y * ki); _x = (_x + x1); _y = (_y + y1); xdiff = _root.ball2._x - this._x; ydiff = _root.ball2._y - this._y; distance = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)); if (distance <= 29) { dx = this._x - _root.ball2._x; dy = this._y - _root.ball2._y; collisionision_angle = Math.atan2(dy, dx); magnitude_1 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_2 = Math.sqrt((_root.ball2.xspeed * _root.ball2.xspeed) + (_root.ball2.yspeed * _root.ball2.yspeed)); direction_1 = Math.atan2(this.y1, this.x1); direction_2 = Math.atan2(_root.ball2.yspeed, _root.ball2.xspeed); new_xspeed_1 = magnitude_1 * Math.cos(direction_1 - collisionision_angle); new_yspeed_1 = magnitude_1 * Math.sin(direction_1 - collisionision_angle); new_xspeed_2 = magnitude_2 * Math.cos(direction_2 - collisionision_angle); new_yspeed_2 = magnitude_2 * Math.sin(direction_2 - collisionision_angle); final_xspeed_1 = (((this.mass - _root.ball2.mass) * new_xspeed_1) + ((_root.ball2.mass + _root.ball2.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_xspeed_2 = (((this.mass + this.mass) * new_xspeed_1) + ((_root.ball2.mass - this.mass) * new_xspeed_2)) / (this.mass + _root.ball2.mass); final_yspeed_1 = new_yspeed_1; final_yspeed_2 = new_yspeed_2; this.x1 = (Math.cos(collisionision_angle) * final_xspeed_1) + ((Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_1) * 2); this.y1 = (Math.sin(collisionision_angle) * final_xspeed_1) + ((Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_1) * 2); _root.ball2.xspeed = (Math.cos(collisionision_angle) * final_xspeed_2) + (Math.cos(collisionision_angle + (Math.PI/2)) * final_yspeed_2); _root.ball2.yspeed = (Math.sin(collisionision_angle) * final_xspeed_2) + (Math.sin(collisionision_angle + (Math.PI/2)) * final_yspeed_2); } xdiff2 = _root.ball3._x - this._x; ydiff2 = _root.ball3._y - this._y; distance2 = Math.sqrt((xdiff2 * xdiff2) + (ydiff2 * ydiff2)); if (distance2 <= 29) { dx2 = this._x - _root.ball3._x; dy2 = this._y - _root.ball3._y; collisionision_angle2 = Math.atan2(dy2, dx2); magnitude_12 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_22 = Math.sqrt((_root.ball3.xspeed * _root.ball3.xspeed) + (_root.ball3.yspeed * _root.ball3.yspeed)); direction_12 = Math.atan2(this.y1, this.x1); direction_22 = Math.atan2(_root.ball3.yspeed, _root.ball3.xspeed); new_xspeed_12 = magnitude_12 * Math.cos(direction_12 - collisionision_angle2); new_yspeed_12 = magnitude_12 * Math.sin(direction_12 - collisionision_angle2); new_xspeed_22 = magnitude_22 * Math.cos(direction_22 - collisionision_angle2); new_yspeed_22 = magnitude_22 * Math.sin(direction_22 - collisionision_angle2); final_xspeed_12 = (((this.mass - _root.ball3.mass) * new_xspeed_12) + ((_root.ball3.mass + _root.ball3.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_xspeed_22 = (((this.mass + this.mass) * new_xspeed_12) + ((_root.ball3.mass - this.mass) * new_xspeed_22)) / (this.mass + _root.ball3.mass); final_yspeed_12 = new_yspeed_12; final_yspeed_22 = new_yspeed_22; this.x1 = (Math.cos(collisionision_angle2) * final_xspeed_12) + ((Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12) * 2); this.y1 = (Math.sin(collisionision_angle2) * final_xspeed_12) + ((Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_12) * 2); _root.ball3.xspeed = (Math.cos(collisionision_angle2) * final_xspeed_22) + (Math.cos(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); _root.ball3.yspeed = (Math.sin(collisionision_angle2) * final_xspeed_22) + (Math.sin(collisionision_angle2 + (Math.PI/2)) * final_yspeed_22); } xdiff3 = _root.ball4._x - this._x; ydiff3 = _root.ball4._y - this._y; distance3 = Math.sqrt((xdiff3 * xdiff3) + (ydiff3 * ydiff3)); if (distance3 <= 29) { dx3 = this._x - _root.ball4._x; dy3 = this._y - _root.ball4._y; collisionision_angle3 = Math.atan2(dy3, dx3); magnitude_13 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_23 = Math.sqrt((_root.ball4.xspeed * _root.ball4.xspeed) + (_root.ball4.yspeed * _root.ball4.yspeed)); direction_13 = Math.atan2(this.y1, this.x1); direction_23 = Math.atan2(_root.ball4.yspeed, _root.ball4.xspeed); new_xspeed_13 = magnitude_13 * Math.cos(direction_13 - collisionision_angle3); new_yspeed_13 = magnitude_13 * Math.sin(direction_13 - collisionision_angle3); new_xspeed_23 = magnitude_23 * Math.cos(direction_23 - collisionision_angle3); new_yspeed_23 = magnitude_23 * Math.sin(direction_23 - collisionision_angle3); final_xspeed_13 = (((this.mass - _root.ball4.mass) * new_xspeed_13) + ((_root.ball4.mass + _root.ball4.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_xspeed_23 = (((this.mass + this.mass) * new_xspeed_13) + ((_root.ball4.mass - this.mass) * new_xspeed_23)) / (this.mass + _root.ball4.mass); final_yspeed_13 = new_yspeed_13; final_yspeed_23 = new_yspeed_23; this.x1 = (Math.cos(collisionision_angle3) * final_xspeed_13) + ((Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13) * 2); this.y1 = (Math.sin(collisionision_angle3) * final_xspeed_13) + ((Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_13) * 2); _root.ball4.xspeed = (Math.cos(collisionision_angle3) * final_xspeed_23) + (Math.cos(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); _root.ball4.yspeed = (Math.sin(collisionision_angle3) * final_xspeed_23) + (Math.sin(collisionision_angle3 + (Math.PI/2)) * final_yspeed_23); } xdiff4 = _root.ball5._x - this._x; ydiff4 = _root.ball5._y - this._y; distance4 = Math.sqrt((xdiff4 * xdiff4) + (ydiff4 * ydiff4)); if (distance4 <= 29) { dx4 = this._x - _root.ball5._x; dy4 = this._y - _root.ball5._y; collisionision_angle4 = Math.atan2(dy4, dx4); magnitude_14 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_24 = Math.sqrt((_root.ball5.xspeed * _root.ball5.xspeed) + (_root.ball5.yspeed * _root.ball5.yspeed)); direction_14 = Math.atan2(this.y1, this.x1); direction_24 = Math.atan2(_root.ball5.yspeed, _root.ball5.xspeed); new_xspeed_14 = magnitude_14 * Math.cos(direction_14 - collisionision_angle4); new_yspeed_14 = magnitude_14 * Math.sin(direction_14 - collisionision_angle4); new_xspeed_24 = magnitude_24 * Math.cos(direction_24 - collisionision_angle4); new_yspeed_24 = magnitude_24 * Math.sin(direction_24 - collisionision_angle4); final_xspeed_14 = (((this.mass - _root.ball5.mass) * new_xspeed_14) + ((_root.ball5.mass + _root.ball5.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_xspeed_24 = (((this.mass + this.mass) * new_xspeed_14) + ((_root.ball5.mass - this.mass) * new_xspeed_24)) / (this.mass + _root.ball5.mass); final_yspeed_14 = new_yspeed_14; final_yspeed_24 = new_yspeed_24; this.x1 = (Math.cos(collisionision_angle4) * final_xspeed_14) + ((Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14) * 2); this.y1 = (Math.sin(collisionision_angle4) * final_xspeed_14) + ((Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_14) * 2); _root.ball5.xspeed = (Math.cos(collisionision_angle4) * final_xspeed_24) + (Math.cos(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); _root.ball5.yspeed = (Math.sin(collisionision_angle4) * final_xspeed_24) + (Math.sin(collisionision_angle4 + (Math.PI/2)) * final_yspeed_24); } xdiff5 = _root.ball6._x - this._x; ydiff5 = _root.ball6._y - this._y; distance5 = Math.sqrt((xdiff5 * xdiff5) + (ydiff5 * ydiff5)); if (distance5 <= 29) { dx5 = this._x - _root.ball6._x; dy5 = this._y - _root.ball6._y; collisionision_angle5 = Math.atan2(dy5, dx5); magnitude_15 = Math.sqrt((this.x1 * this.x1) + (this.y1 * this.y1)); magnitude_25 = Math.sqrt((_root.ball6.xspeed * _root.ball6.xspeed) + (_root.ball6.yspeed * _root.ball6.yspeed)); direction_15 = Math.atan2(this.y1, this.x1); direction_25 = Math.atan2(_root.ball6.yspeed, _root.ball6.xspeed); new_xspeed_15 = magnitude_15 * Math.cos(direction_15 - collisionision_angle5); new_yspeed_15 = magnitude_15 * Math.sin(direction_15 - collisionision_angle5); new_xspeed_25 = magnitude_25 * Math.cos(direction_25 - collisionision_angle5); new_yspeed_25 = magnitude_25 * Math.sin(direction_25 - collisionision_angle5); final_xspeed_15 = (((this.mass - _root.ball6.mass) * new_xspeed_15) + ((_root.ball6.mass + _root.ball6.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_xspeed_25 = (((this.mass + this.mass) * new_xspeed_15) + ((_root.ball6.mass - this.mass) * new_xspeed_25)) / (this.mass + _root.ball6.mass); final_yspeed_15 = new_yspeed_15; final_yspeed_25 = new_yspeed_25; this.x1 = (Math.cos(collisionision_angle5) * final_xspeed_15) + ((Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15) * 2); this.y1 = (Math.sin(collisionision_angle5) * final_xspeed_15) + ((Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_15) * 2); _root.ball6.xspeed = (Math.cos(collisionision_angle5) * final_xspeed_25) + (Math.cos(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); _root.ball6.yspeed = (Math.sin(collisionision_angle5) * final_xspeed_25) + (Math.sin(collisionision_angle5 + (Math.PI/2)) * final_yspeed_25); } }
Frame 23
stop(); Monotone.data.invertable = 1; onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { lineStyle(5); moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } };
Frame 24
mochi.MochiScores.showLeaderboard({boardID:"ee5ec6cfc208da40", score:time, name:playername}); onEnterFrame = function () { with (createEmptyMovieClip("line", 1)) { lineStyle(5); moveTo(ball._x, ball._y); lineTo(ball._x, ball._y); } }; var lc = new LocalConnection(); lc.send("spapi", "scoreSend", time, "Endless Time");
Frame 25
mochi.MochiScores.showLeaderboard({boardID:"d86606e43348226a", score:score}); var lc = new LocalConnection(); lc.send("spapi", "scoreSend", score, "Endless Score");
Frame 26
gotoAndStop (3);
Symbol 4 MovieClip Frame 1
win = 0; stop();
Symbol 4 MovieClip Frame 2
win = 1;
Symbol 4 MovieClip Frame 36
_root.gotoAndStop(22);
Symbol 409 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices { static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("1.35"); } static function allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function get isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; _rcvChannelName = val; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { if ((!_connected) && (_clip == undefined)) { trace("MochiServices Connecting..."); _connecting = true; init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); _rcvChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var _local2 = "_mochiservices_com_" + id; if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } allowDomains(_gatewayURL); _clip = clip.createEmptyMovieClip(_local2, 10336, false); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; _loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; _loaderListener.startTime = getTimer(); _loaderListener.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip(_gatewayURL, _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain = function (d) { return(true); }; _rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain; _rcvChannel._nextcallbackID = 0; _rcvChannel._callbacks = {}; listen(); return(_clip); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _rcvChannel.onReceive = function (pkg) { var _local5 = pkg.callbackID; var _local4 = this._callbacks[_local5]; if (!_local4) { return(undefined); } var _local2 = _local4.callbackMethod; var _local3 = _local4.callbackObject; if (_local3 && (typeof(_local2) == "string")) { _local2 = _local3[_local2]; } if (_local2 != undefined) { _local2.apply(_local3, pkg.args); } delete this._callbacks[_local5]; }; _rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ["IOError"]); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function flush(error) { var _local1; var _local2; while (_sendChannel._queue.length > 0) { _local1 = _sendChannel._queue.shift(); if (_local1.callbackID != null) { _local2 = _rcvChannel._callbacks[_local1.callbackID]; } delete _rcvChannel._callbacks[_local1.callbackID]; if (error) { handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod); } } } static function handleError(args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ["NotConnected"]); } if ((args.options != null) && (args.options.onError != null)) { args.options.onError.apply(null, ["NotConnected"]); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = "NotConnected"; if ((callbackObject != null) && (typeof(callbackMethod) == "string")) { callbackObject[callbackMethod](args); } else if (callbackMethod != null) { callbackMethod.apply(args); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { onError.apply(null, ["NotConnected"]); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } _rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _rcvChannel._nextcallbackID++; } static function addLinkEvent(url, burl, btn, onClick) { var _local2 = new Object(); _local2.mav = getVersion(); _local2.swfv = btn.getSWFVersion() || 6; _local2.swfurl = btn._url; _local2.fv = System.capabilities.version; _local2.os = System.capabilities.os; _local2.lang = System.capabilities.language; _local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY; var s = "?"; var _local3 = 0; for (var _local6 in _local2) { if (_local3 != 0) { s = s + "&"; } _local3++; s = ((s + _local6) + "=") + escape(_local2[_local6]); } var _local4 = btn.createEmptyMovieClip("clk", 1001); _local4._alpha = 0; _local4.beginFill(1044735); _local4.moveTo(0, 0); _local4.lineTo(0, btn._height); _local4.lineTo(btn._width, btn._height); _local4.lineTo(btn._width, 0); _local4.lineTo(0, 0); _local4.endFill(); _local4.onRelease = function () { var _local3; var _local2 = new LoadVars(); var timeout = 1500; var t0 = getTimer(); var ping = this.createEmptyMovieClip("ping", 777); this.onEnterFrame = function () { if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) { delete this.onEnterFrame; delete this.ping; getURL (url + s, "_blank"); } else if ((getTimer() - t0) > timeout) { delete this.onEnterFrame; delete this.ping; getURL (burl, "_blank"); } }; ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer()); if (onClick != undefined) { onClick(); } }; } static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__mochiservices"; static var _connecting = false; static var _connected = false; }
Symbol 410 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.7"); } static function showPreGameAd(options) { var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }, ad_progress:function (percent) { }}; options = _parseOptions(options, _local26); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local22 = 11000; var _local25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4); if (options.no_progress_bar) { _local6._visible = false; delete options.no_progress_bar; } else { _local6._x = 10; _local6._y = _local13 - 20; } var _local21 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local23 = options.outline; delete options.outline; var _local5 = _local6.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local6.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local21); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local7 = _local6.createEmptyMovieClip("_outline", 3); _local7.lineStyle(0, _local23, 100); _local7.moveTo(0, 0); _local7.lineTo(_local4 - 20, 0); _local7.lineTo(_local4 - 20, 10); _local7.lineTo(0, 10); _local7.lineTo(0, 0); chk.ad_msec = _local22; chk.ad_timeout = _local25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local11 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local2 = (100 * _local8) / _local4; var _local10 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local13 = Math.min(100, Math.min(_local2 || 0, _local10)); _local13 = Math.max(this.last_pcnt, _local13); this.last_pcnt = _local13; _local9._xscale = _local13; options.ad_progress(_local13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2}); if (_local2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var _local7 = _local11.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showClickAwayAd(options) { var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () { }, ad_finished:function () { }, ad_loaded:function (width, height) { }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function () { }}; options = _parseOptions(options, _local9); var clip = options.clip; var _local8 = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local4 = _getRes(options); var _local10 = _local4[0]; var _local7 = _local4[1]; mc._x = _local10 * 0.5; mc._y = _local7 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_timeout = _local8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; var _local20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { _local2 = true; chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local2) { delete this.onEnterFrame; } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showPreloaderAd(options) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(options); } static function showTimedAd(options) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(options); } static function _allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function load(options) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local9 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } static function rpc(clip, callbackID, arg) { switch (arg.id) { case "setValue" : setValue(clip, arg.objectName, arg.value); break; case "getValue" : var _local4 = getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4); break; case "runMethod" : var _local3 = runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3); break; default : trace("[mochiads rpc] unknown rpc id: " + arg.id); } } static function setValue(base, objectName, value) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } base[_local2[_local1]] = value; } static function getValue(base, objectName) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } return(base[_local2[_local1]]); } static function runMethod(base, methodName, argsArray) { var _local2 = methodName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } if (typeof(base[_local2[_local1]]) == "function") { return(base[_local2[_local1]].apply(base, argsArray)); } return(undefined); } }
Symbol 411 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if (options.clip != null) { if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) { mochi.MochiServices.disconnect(); mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip); } delete options.clip; } if (options.name != null) { if (typeof(options.name) == "object") { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (typeof(options.score) == "object") { if (options.score.text != undefined) { options.score = options.score.text; } } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod); } static function scoresArrayToObjects(scores) { var _local5 = {}; var _local1; var _local4; var _local2; var _local6; for (var _local8 in scores) { if (typeof(scores[_local8]) == "object") { if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) { _local5[_local8] = []; _local2 = scores[_local8]; _local4 = 0; while (_local4 < _local2.rows.length) { _local6 = {}; _local1 = 0; while (_local1 < _local2.cols.length) { _local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1]; _local1++; } _local5[_local8].push(_local6); _local4++; } } else { _local5[_local8] = {}; for (var _local7 in scores[_local8]) { _local5[_local8][_local7] = scores[_local8][_local7]; } } } else { _local5[_local8] = scores[_local8]; } } return(_local5); } static function doClose(args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = "IOError"; } onError.apply(null, [args.errorCode]); } else { onClose.apply(); } } }
Symbol 8 MovieClip Frame 1
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("79e0aa90", this, 10301, true);
Instance of Symbol 7 MovieClip in Symbol 8 MovieClip Frame 1
on (release) { getURL ("http://www.surpassarcade.com/links.php?mode=in&id=43", _blank); }
Symbol 8 MovieClip Frame 139
_root.play();
Symbol 14 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip in Symbol 14 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 15 Button
on (release) { if (_root.musical == 1) { _root.musical = 0; _root.music.stop(); } else { _root.musical = 1; _root.music.play(); } }
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 20 Button
on (release) { if (_root.tutorials == 1) { _root.tutorials = 0; } else { _root.tutorials = 1; } }
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 24 Button
on (release) { if (_root.hs == 1) { _root.hs = 0; } else { _root.hs = 1; } }
Symbol 25 Button
on (release) { if (_root.inverted == 1) { _root.inverted = 0; } else { _root.inverted = 1; } }
Instance of Symbol 43 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 45 Button
on (release) { this.gotoAndPlay(4); }
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 50 Button
on (release) { this.gotoAndPlay(2); }
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 55 Button
on (release) { _root.gotoAndPlay(4); }
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 60 Button
on (release) { this.gotoAndPlay(3); }
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 67 Button
on (release) { getURL ("http://www.surpassarcade.com/links.php?mode=in&id=43", _blank); }
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 73 Button
on (release) { _root.music.play(); _root.musical = 1; }
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 78 Button
on (release) { _root.music.stop(); _root.musical = 0; }
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 85 Button
on (release) { this.gotoAndPlay(1); }
Symbol 86 Button
on (release) { if (_root.Monotone.data.invertable == 1) { _root.inverted = 1; } }
Symbol 87 Button
on (release) { _root.inverted = 0; }
Symbol 94 Button
on (release) { _root.tutorials = 1; }
Symbol 95 Button
on (release) { _root.tutorials = 0; }
Symbol 96 Button
on (release) { _root.ob = 1; }
Symbol 97 Button
on (release) { _root.ob = 0; }
Symbol 106 Button
on (release) { _root.hs = 1; }
Symbol 107 Button
on (release) { _root.hs = 0; }
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } }
Instance of Symbol 119 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 121 Button
on (release) { _root.gotoAndPlay(6); }
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 125 Button
on (release) { if (_root.Monotone.data.level2u == 1) { _root.gotoAndPlay(7); } }
Instance of Symbol 127 MovieClip in Symbol 128 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 129 Button
on (release) { if (_root.Monotone.data.level3u == 1) { _root.gotoAndPlay(8); } }
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 133 Button
on (release) { if (_root.Monotone.data.level4u == 1) { _root.gotoAndPlay(9); } }
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 137 Button
on (release) { if (_root.Monotone.data.level5u == 1) { _root.gotoAndPlay(10); } }
Instance of Symbol 140 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 142 Button
on (release) { if (_root.Monotone.data.level6u == 1) { _root.gotoAndPlay(11); } }
Instance of Symbol 144 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 146 Button
on (release) { if (_root.Monotone.data.level7u == 1) { _root.gotoAndPlay(12); } }
Instance of Symbol 149 MovieClip in Symbol 150 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 151 Button
on (release) { if (_root.Monotone.data.level9u == 1) { _root.gotoAndPlay(14); } }
Instance of Symbol 153 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 155 Button
on (release) { if (_root.Monotone.data.level8u == 1) { _root.gotoAndPlay(13); } }
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 160 Button
on (release) { if (_root.Monotone.data.level10u == 1) { _root.gotoAndPlay(15); } }
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 165 Button
on (release) { if (_root.Monotone.data.level11u == 1) { _root.gotoAndPlay(16); } }
Instance of Symbol 167 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 169 Button
on (release) { if (_root.Monotone.data.level12u == 1) { _root.gotoAndPlay(17); } }
Instance of Symbol 171 MovieClip in Symbol 172 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 173 Button
on (release) { if (_root.Monotone.data.level13u == 1) { _root.gotoAndPlay(18); } }
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 177 Button
on (release) { if (_root.Monotone.data.level14u == 1) { _root.gotoAndPlay(19); } }
Instance of Symbol 179 MovieClip in Symbol 180 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 181 Button
on (release) { if (_root.Monotone.data.level15u == 1) { _root.gotoAndPlay(20); } }
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 185 Button
on (release) { if (_root.Monotone.data.level16u == 1) { _root.gotoAndPlay(21); } }
Symbol 189 MovieClip Frame 1
stop(); if (_root.Monotone.data.musicplaying == undefined) { _root.Monotone.data.musicplaying = _root.musical; } if (_root.Monotone.data.musicplaying == 1) { _root.musical = 1; _root.music.play(); } if (_root.Monotone.data.musicplaying == 0) { _root.musical = 0; _root.music.stop(); } if (_root.Monotone.data.tutorialsplaying == undefined) { _root.Monotone.data.tutorialsplaying = _root.tutorials; } if (_root.Monotone.data.tutorialsplaying == 1) { _root.tutorials = 1; } if (_root.Monotone.data.tutorialsplaying == 0) { _root.tutorials = 0; } if (_root.Monotone.data.obthere == undefined) { _root.Monotone.data.obthere = _root.ob; } if (_root.Monotone.data.obthere == 1) { _root.ob = 1; } if (_root.Monotone.data.obthere == 0) { _root.ob = 0; } if (_root.Monotone.data.usehs == undefined) { _root.Monotone.data.usehs = _root.hs; } if (_root.Monotone.data.usehs == 1) { _root.hs = 1; } if (_root.Monotone.data.usehs == 0) { _root.hs = 0; } if (_root.Monotone.data.inver == undefined) { _root.Monotone.data.inver = _root.inverted; } if (_root.Monotone.data.inver == 1) { _root.inverted = 1; } if (_root.Monotone.data.inver == 0) { _root.inverted = 0; }
Instance of Symbol 63 MovieClip in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 189 MovieClip Frame 2
stop(); _root.Monotone.data.musicplaying = musical; _root.Monotone.data.tutorialsplaying = tutorials; _root.Monotone.data.obthere = ob; _root.Monotone.data.usehs = hs; _root.Monotone.data.inver = inverted;
Instance of Symbol 80 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 89 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 91 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.Monotone.data.invertable == 0) { this._x = -215.1; this._y = 102.8; } }
Instance of Symbol 93 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 100 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 103 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 105 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.musical == 1) { this._x = -91; this._y = -116; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 105 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.tutorials == 1) { this._x = 10.9; this._y = -59.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 105 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.ob == 1) { this._x = 69.6; this._y = -2.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 105 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = -10.4; this._y = 96.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 105 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.hs == 1) { this._x = 51.3; this._y = 47.7; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 109 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.musical == 0) { this._x = -16; this._y = -118; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 109 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.tutorials == 0) { this._x = 87; this._y = -62.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 109 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.ob == 0) { this._x = 150; this._y = -3.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 109 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.hs == 0) { this._x = 129; this._y = 52.4; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 109 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.inverted == 0) { this._x = 75; this._y = 101.5; } else { this._x = 9999; } var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 111 MovieClip in Symbol 189 MovieClip Frame 2
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 189 MovieClip Frame 3
stop();
Instance of Symbol 113 MovieClip in Symbol 189 MovieClip Frame 3
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 115 MovieClip in Symbol 189 MovieClip Frame 3
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 189 MovieClip Frame 4
stop();
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level5u == 0) { this._x = -135; this._y = -45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level11u == 0) { this._x = 45; this._y = 45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level8u == 0) { this._x = 135; this._y = -45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level12u == 0) { this._x = 135; this._y = 45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level9u == 0) { this._x = -135; this._y = 45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level6u == 0) { this._x = -45; this._y = -45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level13u == 0) { this._x = -135; this._y = 135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level10u == 0) { this._x = -45; this._y = 45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level7u == 0) { this._x = 45; this._y = -45; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level2u == 0) { this._x = -45; this._y = -135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level3u == 0) { this._x = 45; this._y = -135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level4u == 0) { this._x = 135; this._y = -135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level14u == 0) { this._x = -45; this._y = 135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level15u == 0) { this._x = 45; this._y = 135; } else { this._x = 9999; } }
Instance of Symbol 186 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.Monotone.data.level16u == 0) { this._x = 135; this._y = 135; } else { this._x = 9999; } }
Instance of Symbol 188 MovieClip in Symbol 189 MovieClip Frame 4
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 199 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 208 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 211 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 216 MovieClip Frame 1
stop(); explodeable = 0; lineable = 0;
Instance of Symbol 191 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 216 MovieClip Frame 2
lineable = 1;
Symbol 216 MovieClip Frame 20
stop(); explodeable = 1;
Instance of Symbol 218 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 221 MovieClip "penta" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 223 MovieClip Frame 24
_root.time = _root.time + 1; _root.score = _root.score + 10; if ((_root.highscore == 1) && (_root.ball._y < 125)) { _root.score = _root.score + 10; } if ((_root.highscore == 1) && (_root.time == 20)) { _root.calls = _root.calls + 1; } if ((_root.highscore == 1) && (_root.time == 80)) { _root.calls = _root.calls + 1; } if ((_root.highscore == 1) && (_root.time == 320)) { _root.calls = _root.calls + 1; } if ((_root.highscore == 1) && (_root.time == 1280)) { _root.calls = _root.calls + 1; } if ((_root.highscore == 1) && (_root.time == 2560)) { _root.calls = _root.calls + 1; }
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 72
stop();
Instance of Symbol 230 MovieClip in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 84
stop();
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 121
stop();
Instance of Symbol 238 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 72
stop();
Instance of Symbol 247 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 250 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 169
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 36
if (_root.highscore == 0) { _root.gotoAndStop(5); } else { _root.gotoAndStop(24); }
Symbol 270 MovieClip Frame 36
stop();
Symbol 277 Button
on (release) { if (_root.level == 0) { _root.gotoAndPlay(4); } if (_root.level == 1) { _root.gotoAndPlay(6); } if (_root.level == 2) { _root.gotoAndPlay(7); } if (_root.level == 3) { _root.gotoAndPlay(8); } if (_root.level == 4) { _root.gotoAndPlay(9); } if (_root.level == 5) { _root.gotoAndPlay(10); } if (_root.level == 6) { _root.gotoAndPlay(11); } if (_root.level == 7) { _root.gotoAndPlay(12); } if (_root.level == 8) { _root.gotoAndPlay(13); } if (_root.level == 9) { _root.gotoAndPlay(14); } if (_root.level == 10) { _root.gotoAndPlay(15); } if (_root.level == 11) { _root.gotoAndPlay(16); } if (_root.level == 12) { _root.gotoAndPlay(17); } if (_root.level == 13) { _root.gotoAndPlay(18); } if (_root.level == 14) { _root.gotoAndPlay(19); } if (_root.level == 15) { _root.gotoAndPlay(20); } if (_root.level == 16) { _root.gotoAndPlay(21); } }
Symbol 278 Button
on (release) { _root.gotoAndPlay(3); }
Instance of Symbol 270 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 0; this._y = 0; } }
Instance of Symbol 271 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; this._y = 0; } }
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 282 MovieClip Frame 36
stop();
Symbol 296 MovieClip Frame 24
if (_root.time > 0) { _root.time = _root.time - 1; _root.score = _root.score + 10; }
Symbol 299 MovieClip Frame 72
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 96
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 96
stop();
Symbol 309 MovieClip Frame 72
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 96
stop();
Symbol 315 MovieClip Frame 72
stop();
Symbol 318 MovieClip Frame 72
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 96
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 96
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 120
stop();
Symbol 330 MovieClip Frame 72
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 96
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 96
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 96
stop();
Symbol 343 MovieClip Frame 72
stop();
Symbol 346 MovieClip Frame 72
stop();
Symbol 349 MovieClip Frame 72
stop();
Symbol 352 MovieClip Frame 72
stop();
Symbol 355 MovieClip Frame 72
stop();
Symbol 358 MovieClip Frame 72
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 121
stop();
Symbol 364 MovieClip Frame 72
stop();
Symbol 367 MovieClip Frame 72
stop();
Symbol 370 MovieClip Frame 72
stop();
Symbol 373 MovieClip Frame 72
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 36
_root.gotoAndStop(23);
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Symbol 379 Button
on (release) { if ((_root.level == 1) && (_root.Monotone.data.level2u == 1)) { _root.gotoAndPlay(7); } if ((_root.level == 2) && (_root.Monotone.data.level3u == 1)) { _root.gotoAndPlay(8); } if ((_root.level == 3) && (_root.Monotone.data.level4u == 1)) { _root.gotoAndPlay(9); } if ((_root.level == 4) && (_root.Monotone.data.level5u == 1)) { _root.gotoAndPlay(10); } if ((_root.level == 5) && (_root.Monotone.data.level6u == 1)) { _root.gotoAndPlay(11); } if ((_root.level == 6) && (_root.Monotone.data.level7u == 1)) { _root.gotoAndPlay(12); } if ((_root.level == 7) && (_root.Monotone.data.level8u == 1)) { _root.gotoAndPlay(13); } if ((_root.level == 8) && (_root.Monotone.data.level9u == 1)) { _root.gotoAndPlay(14); } if ((_root.level == 9) && (_root.Monotone.data.level10u == 1)) { _root.gotoAndPlay(15); } if ((_root.level == 10) && (_root.Monotone.data.level11u == 1)) { _root.gotoAndPlay(16); } if ((_root.level == 11) && (_root.Monotone.data.level12u == 1)) { _root.gotoAndPlay(17); } if ((_root.level == 12) && (_root.Monotone.data.level13u == 1)) { _root.gotoAndPlay(18); } if ((_root.level == 13) && (_root.Monotone.data.level14u == 1)) { _root.gotoAndPlay(19); } if ((_root.level == 14) && (_root.Monotone.data.level15u == 1)) { _root.gotoAndPlay(20); } if ((_root.level == 15) && (_root.Monotone.data.level16u == 1)) { _root.gotoAndPlay(21); } }
Symbol 380 Button
on (release) { _root.gotoAndPlay(3); }
Symbol 383 MovieClip Frame 36
stop();
Instance of Symbol 381 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } }
Instance of Symbol 383 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 0) { this._x = 9999; } }
Instance of Symbol 385 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 386 MovieClip "fade" in Symbol 387 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; } }
Symbol 387 MovieClip Frame 36
stop();
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) { if ((_root.level == 1) && (_root.Monotone.data.level2u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 2) && (_root.Monotone.data.level3u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 3) && (_root.Monotone.data.level4u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 4) && (_root.Monotone.data.level5u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 5) && (_root.Monotone.data.level6u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 6) && (_root.Monotone.data.level7u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 7) && (_root.Monotone.data.level8u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 8) && (_root.Monotone.data.level9u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 9) && (_root.Monotone.data.level10u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 10) && (_root.Monotone.data.level11u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 11) && (_root.Monotone.data.level12u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 12) && (_root.Monotone.data.level13u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 13) && (_root.Monotone.data.level14u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 14) && (_root.Monotone.data.level15u == 1)) { this._x = 75; this._y = 190; } if ((_root.level == 15) && (_root.Monotone.data.level16u == 1)) { this._x = 75; this._y = 190; } } onClipEvent (enterFrame) { if (_root.level == 1) { _root.Monotone.data.level2u = 1; } if (_root.level == 2) { _root.Monotone.data.level3u = 1; } if (_root.level == 3) { _root.Monotone.data.level4u = 1; } if (_root.level == 4) { _root.Monotone.data.level5u = 1; } if (_root.level == 5) { _root.Monotone.data.level6u = 1; } if (_root.level == 6) { _root.Monotone.data.level7u = 1; } if (_root.level == 7) { _root.Monotone.data.level8u = 1; } if (_root.level == 8) { _root.Monotone.data.level9u = 1; } if (_root.level == 9) { _root.Monotone.data.level10u = 1; } if (_root.level == 10) { _root.Monotone.data.level11u = 1; } if (_root.level == 11) { _root.Monotone.data.level12u = 1; } if (_root.level == 12) { _root.Monotone.data.level13u = 1; } if (_root.level == 13) { _root.Monotone.data.level14u = 1; } if (_root.level == 14) { _root.Monotone.data.level15u = 1; } if (_root.level == 15) { _root.Monotone.data.level16u = 1; } if (_root.level == 16) { _root.Monotone.data.invertable = 1; } }
Instance of Symbol 391 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 393 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } if ((_root.level == 1) && (_root.Monotone.data.level2u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 2) && (_root.Monotone.data.level3u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 3) && (_root.Monotone.data.level4u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 4) && (_root.Monotone.data.level5u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 5) && (_root.Monotone.data.level6u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 6) && (_root.Monotone.data.level7u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 7) && (_root.Monotone.data.level8u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 8) && (_root.Monotone.data.level9u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 9) && (_root.Monotone.data.level10u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 10) && (_root.Monotone.data.level11u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 11) && (_root.Monotone.data.level12u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 12) && (_root.Monotone.data.level13u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 13) && (_root.Monotone.data.level14u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 14) && (_root.Monotone.data.level15u == 1)) { this._x = 9999; this._y = 190; } if ((_root.level == 15) && (_root.Monotone.data.level16u == 1)) { this._x = 9999; this._y = 190; } }
Instance of Symbol 270 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 0; this._y = 0; } }
Instance of Symbol 271 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; this._y = 0; } }
Symbol 395 MovieClip Frame 36
stop();
Symbol 402 MovieClip Frame 36
stop();
Instance of Symbol 400 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(0); } else { colorful.setRGB(16777215); } }
Instance of Symbol 402 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 0) { this._x = 9999; } }
Instance of Symbol 404 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 405 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; } }
Symbol 406 MovieClip Frame 36
stop();
Instance of Symbol 271 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 9999; } }
Instance of Symbol 270 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.inverted == 1) { this._x = 0; this._y = 0; } }
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { var colorful = new Color(this); if (_root.inverted == 1) { colorful.setRGB(16777215); } else { colorful.setRGB(0); } }
Instance of Symbol 406 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_root.level == 16) && (_root.Monotone.data.invertable == 1)) { this._x = -209.5; this._y = -90; } }
Symbol 407 MovieClip Frame 36
stop();
Symbol 408 MovieClip Frame 36
stop();

Library Items

Symbol 1 Sound [SurpassArcade]Used by:8
Symbol 2 GraphicUsed by:3 9 10 25 223 270 271 383 386 402 405
Symbol 3 MovieClipUses:2Used by:4 268
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 409 MovieClip [__Packages.mochi.MochiServices]
Symbol 410 MovieClip [__Packages.MochiAd]
Symbol 411 MovieClip [__Packages.mochi.MochiScores]
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClipUses:7 1Used by:Timeline
Symbol 9 MovieClipUses:2 SS1Used by:Timeline
Symbol 10 MovieClipUses:2Used by:Timeline
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:13 15
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClipUses:13Used by:15
Symbol 15 ButtonUses:11 14 12Used by:Timeline
Symbol 16 GraphicUsed by:20 24 67
Symbol 17 GraphicUsed by:18 20
Symbol 18 MovieClipUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:20
Symbol 20 ButtonUses:16 19 17Used by:Timeline
Symbol 21 GraphicUsed by:22 24
Symbol 22 MovieClipUses:21Used by:23
Symbol 23 MovieClipUses:22Used by:24
Symbol 24 ButtonUses:16 23 21Used by:Timeline
Symbol 25 ButtonUses:2Used by:Timeline
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:28 186
Symbol 28 MovieClipUses:27Used by:Timeline
Symbol 29 GraphicUsed by:30 31 41 45 46 50 51 55 56 60 69 73 74 78 81 85 86 87 94 95 96 97 106 107 116 121 125 129 133 137 142 146 151 155 160 165 169 173 177 181 185 186 274 277 278 375 379 380 381 400
Symbol 30 MovieClipUses:29Used by:Timeline
Symbol 31 MovieClipUses:29Used by:Timeline
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:36
Symbol 36 MovieClipUses:35Used by:Timeline
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:Timeline
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:Timeline
Symbol 41 MovieClipUses:29Used by:45
Symbol 42 GraphicUsed by:43 45
Symbol 43 MovieClipUses:42Used by:44
Symbol 44 MovieClipUses:43Used by:45
Symbol 45 ButtonUses:41 44 29 42Used by:189
Symbol 46 MovieClipUses:29Used by:50
Symbol 47 GraphicUsed by:48 50
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClipUses:48Used by:50
Symbol 50 ButtonUses:46 49 29 47Used by:189
Symbol 51 MovieClipUses:29Used by:55
Symbol 52 GraphicUsed by:53 55
Symbol 53 MovieClipUses:52Used by:54
Symbol 54 MovieClipUses:53Used by:55
Symbol 55 ButtonUses:51 54 29 52Used by:189
Symbol 56 MovieClipUses:29Used by:60
Symbol 57 GraphicUsed by:58 60
Symbol 58 MovieClipUses:57Used by:59
Symbol 59 MovieClipUses:58Used by:60
Symbol 60 ButtonUses:56 59 29 57Used by:189
Symbol 61 FontUsed by:62 92 112 114 187 252 253 254 255 256 257 258 259 279 280 301 304 310 331 334 338 389 390 392 396 397 398 403
Symbol 62 TextUses:61Used by:63
Symbol 63 MovieClipUses:62Used by:189
Symbol 64 GraphicUsed by:65 67
Symbol 65 MovieClipUses:64Used by:66
Symbol 66 MovieClipUses:65Used by:67
Symbol 67 ButtonUses:16 66 64Used by:189
Symbol 68 GraphicUsed by:189
Symbol 69 MovieClipUses:29Used by:73 86 94 96 106
Symbol 70 GraphicUsed by:71 73 86 94 96 106
Symbol 71 MovieClipUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:73 86 94 96 106
Symbol 73 ButtonUses:69 72 29 70Used by:189
Symbol 74 MovieClipUses:29Used by:78 87 95 97 107
Symbol 75 GraphicUsed by:76 78 87 95 97 107
Symbol 76 MovieClipUses:75Used by:77
Symbol 77 MovieClipUses:76Used by:78 87 95 97 107
Symbol 78 ButtonUses:74 77 29 75Used by:189
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:189
Symbol 81 MovieClipUses:29Used by:85 278 380
Symbol 82 GraphicUsed by:83 85 278 380
Symbol 83 MovieClipUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:85 278 380
Symbol 85 ButtonUses:81 84 29 82Used by:189
Symbol 86 ButtonUses:69 72 29 70Used by:189
Symbol 87 ButtonUses:74 77 29 75Used by:189
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:189
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:189
Symbol 92 TextUses:61Used by:93
Symbol 93 MovieClipUses:92Used by:189
Symbol 94 ButtonUses:69 72 29 70Used by:189
Symbol 95 ButtonUses:74 77 29 75Used by:189
Symbol 96 ButtonUses:69 72 29 70Used by:189
Symbol 97 ButtonUses:74 77 29 75Used by:189
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:100
Symbol 100 MovieClipUses:99Used by:189
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClipUses:102Used by:189
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:104Used by:189
Symbol 106 ButtonUses:69 72 29 70Used by:189
Symbol 107 ButtonUses:74 77 29 75Used by:189
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:189
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:189
Symbol 112 TextUses:61Used by:113
Symbol 113 MovieClipUses:112Used by:189
Symbol 114 TextUses:61Used by:115
Symbol 115 MovieClipUses:114Used by:189
Symbol 116 MovieClipUses:29Used by:117
Symbol 117 MovieClipUses:116Used by:121 125 129 133 137 142 146 151 155 160 165 169 173 177 181 185
Symbol 118 GraphicUsed by:119 121
Symbol 119 MovieClipUses:118Used by:120
Symbol 120 MovieClipUses:119Used by:121
Symbol 121 ButtonUses:117 120 29 118Used by:189
Symbol 122 GraphicUsed by:123 125
Symbol 123 MovieClipUses:122Used by:124
Symbol 124 MovieClipUses:123Used by:125
Symbol 125 ButtonUses:117 124 29 122Used by:189
Symbol 126 GraphicUsed by:127 129
Symbol 127 MovieClipUses:126Used by:128
Symbol 128 MovieClipUses:127Used by:129
Symbol 129 ButtonUses:117 128 29 126Used by:189
Symbol 130 GraphicUsed by:131 133
Symbol 131 MovieClipUses:130Used by:132
Symbol 132 MovieClipUses:131Used by:133
Symbol 133 ButtonUses:117 132 29 130Used by:189
Symbol 134 GraphicUsed by:135 137
Symbol 135 MovieClipUses:134Used by:136
Symbol 136 MovieClipUses:135Used by:137
Symbol 137 ButtonUses:117 136 29 134Used by:189
Symbol 138 GraphicUsed by:142
Symbol 139 GraphicUsed by:140 142
Symbol 140 MovieClipUses:139Used by:141
Symbol 141 MovieClipUses:140Used by:142
Symbol 142 ButtonUses:117 138 141 29 139Used by:189
Symbol 143 GraphicUsed by:144 146
Symbol 144 MovieClipUses:143Used by:145
Symbol 145 MovieClipUses:144Used by:146
Symbol 146 ButtonUses:117 145 29 143Used by:189
Symbol 147 GraphicUsed by:151
Symbol 148 GraphicUsed by:149 151
Symbol 149 MovieClipUses:148Used by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 ButtonUses:117 147 150 29 148Used by:189
Symbol 152 GraphicUsed by:153 155
Symbol 153 MovieClipUses:152Used by:154
Symbol 154 MovieClipUses:153Used by:155
Symbol 155 ButtonUses:117 154 29 152Used by:189
Symbol 156 GraphicUsed by:160
Symbol 157 GraphicUsed by:158 160
Symbol 158 MovieClipUses:157Used by:159
Symbol 159 MovieClipUses:158Used by:160
Symbol 160 ButtonUses:117 156 159 29 157Used by:189
Symbol 161 GraphicUsed by:165
Symbol 162 GraphicUsed by:163 165
Symbol 163 MovieClipUses:162Used by:164
Symbol 164 MovieClipUses:163Used by:165
Symbol 165 ButtonUses:117 161 164 29 162Used by:189
Symbol 166 GraphicUsed by:167 169
Symbol 167 MovieClipUses:166Used by:168
Symbol 168 MovieClipUses:167Used by:169
Symbol 169 ButtonUses:117 168 29 166Used by:189
Symbol 170 GraphicUsed by:171 173
Symbol 171 MovieClipUses:170Used by:172
Symbol 172 MovieClipUses:171Used by:173
Symbol 173 ButtonUses:117 172 29 170Used by:189
Symbol 174 GraphicUsed by:175 177
Symbol 175 MovieClipUses:174Used by:176
Symbol 176 MovieClipUses:175Used by:177
Symbol 177 ButtonUses:117 176 29 174Used by:189
Symbol 178 GraphicUsed by:179 181
Symbol 179 MovieClipUses:178Used by:180
Symbol 180 MovieClipUses:179Used by:181
Symbol 181 ButtonUses:117 180 29 178Used by:189
Symbol 182 GraphicUsed by:183 185
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClipUses:183Used by:185
Symbol 185 ButtonUses:117 184 29 182Used by:189
Symbol 186 MovieClipUses:29 27Used by:189
Symbol 187 TextUses:61Used by:188
Symbol 188 MovieClipUses:187Used by:189
Symbol 189 MovieClipUses:45 50 55 60 63 67 68 73 78 80 85 86 87 89 91 93 94 95 96 97 100 103 105 106 107 109 111 113 115 121 125 129 133 137 142 146 151 155 160 165 169 173 177 181 185 186 188Used by:Timeline
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:190Used by:216
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClipUses:192Used by:194
Symbol 194 MovieClipUses:193Used by:216
Symbol 195 GraphicUsed by:196
Symbol 196 MovieClipUses:195Used by:197
Symbol 197 MovieClipUses:196Used by:216
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:200
Symbol 200 MovieClipUses:199Used by:216
Symbol 201 GraphicUsed by:202
Symbol 202 MovieClipUses:201Used by:203
Symbol 203 MovieClipUses:202Used by:216
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204Used by:206
Symbol 206 MovieClipUses:205Used by:216
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207Used by:209
Symbol 209 MovieClipUses:208Used by:216
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClipUses:210Used by:212
Symbol 212 MovieClipUses:211Used by:216
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213Used by:215
Symbol 215 MovieClipUses:214Used by:216
Symbol 216 MovieClipUses:191 194 197 200 203 206 209 212 215Used by:Timeline
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:219
Symbol 219 MovieClipUses:218Used by:Timeline
Symbol 220 GraphicUsed by:221
Symbol 221 MovieClipUses:220Used by:222
Symbol 222 MovieClipUses:221Used by:Timeline
Symbol 223 MovieClipUses:2Used by:Timeline
Symbol 224 GraphicUsed by:Timeline
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:225Used by:227
Symbol 227 MovieClipUses:226Used by:228
Symbol 228 MovieClipUses:227Used by:Timeline
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClipUses:229Used by:231
Symbol 231 MovieClipUses:230Used by:232
Symbol 232 MovieClipUses:231Used by:Timeline
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClipUses:233Used by:235
Symbol 235 MovieClipUses:234Used by:236
Symbol 236 MovieClipUses:235Used by:Timeline
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:239
Symbol 239 MovieClipUses:238Used by:240
Symbol 240 MovieClipUses:239Used by:Timeline
Symbol 241 GraphicUsed by:Timeline
Symbol 242 GraphicUsed by:247
Symbol 243 GraphicUsed by:247
Symbol 244 GraphicUsed by:247
Symbol 245 GraphicUsed by:247
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClipUses:242 243 244 245 246Used by:248
Symbol 248 MovieClipUses:247Used by:Timeline
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClipUses:249Used by:251
Symbol 251 MovieClipUses:250Used by:Timeline
Symbol 252 TextUses:61Used by:260 281 391 399
Symbol 253 TextUses:61Used by:260 281
Symbol 254 TextUses:61Used by:260 391 399
Symbol 255 TextUses:61Used by:260
Symbol 256 EditableTextUses:61Used by:260
Symbol 257 EditableTextUses:61Used by:260
Symbol 258 EditableTextUses:61Used by:260
Symbol 259 EditableTextUses:61Used by:260
Symbol 260 MovieClipUses:252 253 254 255 256 257 258 259Used by:261
Symbol 261 MovieClipUses:260Used by:Timeline
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClipUses:262Used by:264
Symbol 264 MovieClipUses:263Used by:265
Symbol 265 MovieClipUses:264Used by:Timeline
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:266Used by:Timeline
Symbol 268 MovieClipUses:3Used by:Timeline
Symbol 269 ShapeTweeningUsed by:270
Symbol 270 MovieClipUses:269 2Used by:282 395 407
Symbol 271 MovieClipUses:2Used by:282 374 395 407 408
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:272Used by:281
Symbol 274 MovieClipUses:29Used by:277
Symbol 275 GraphicUsed by:276 277
Symbol 276 MovieClipUses:275Used by:277
Symbol 277 ButtonUses:274 276 29 275Used by:281
Symbol 278 ButtonUses:81 84 29 82Used by:281
Symbol 279 EditableTextUses:61Used by:281
Symbol 280 EditableTextUses:61Used by:281
Symbol 281 MovieClipUses:273 277 278 252 253 279 280Used by:282
Symbol 282 MovieClipUses:270 271 281Used by:Timeline
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:283Used by:Timeline
Symbol 285 GraphicUsed by:286
Symbol 286 MovieClipUses:285Used by:Timeline
Symbol 287 GraphicUsed by:288
Symbol 288 MovieClipUses:287Used by:Timeline
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClipUses:289Used by:Timeline
Symbol 291 GraphicUsed by:292
Symbol 292 MovieClipUses:291Used by:Timeline
Symbol 293 GraphicUsed by:294
Symbol 294 MovieClipUses:293Used by:Timeline
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:295Used by:Timeline
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClipUses:297Used by:299
Symbol 299 MovieClipUses:298Used by:Timeline
Symbol 300 GraphicUsed by:302 311 332 335
Symbol 301 TextUses:61Used by:302
Symbol 302 MovieClipUses:300 301Used by:303
Symbol 303 MovieClipUses:302Used by:Timeline
Symbol 304 TextUses:61Used by:305
Symbol 305 MovieClipUses:304Used by:306
Symbol 306 MovieClipUses:305Used by:Timeline
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClipUses:307Used by:309
Symbol 309 MovieClipUses:308Used by:Timeline
Symbol 310 TextUses:61Used by:311
Symbol 311 MovieClipUses:300 310Used by:312
Symbol 312 MovieClipUses:311Used by:Timeline
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:313Used by:315
Symbol 315 MovieClipUses:314Used by:Timeline
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClipUses:316Used by:318
Symbol 318 MovieClipUses:317Used by:Timeline
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClipUses:319Used by:321
Symbol 321 MovieClipUses:320Used by:Timeline
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322Used by:324
Symbol 324 MovieClipUses:323Used by:Timeline
Symbol 325 GraphicUsed by:326
Symbol 326 MovieClipUses:325Used by:327
Symbol 327 MovieClipUses:326Used by:Timeline
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328Used by:330
Symbol 330 MovieClipUses:329Used by:Timeline
Symbol 331 TextUses:61Used by:332
Symbol 332 MovieClipUses:300 331Used by:333
Symbol 333 MovieClipUses:332Used by:Timeline
Symbol 334 TextUses:61Used by:335
Symbol 335 MovieClipUses:300 334Used by:336
Symbol 336 MovieClipUses:335Used by:Timeline
Symbol 337 GraphicUsed by:339
Symbol 338 TextUses:61Used by:339
Symbol 339 MovieClipUses:337 338Used by:340
Symbol 340 MovieClipUses:339Used by:Timeline
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClipUses:341Used by:343
Symbol 343 MovieClipUses:342Used by:Timeline
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:344Used by:346
Symbol 346 MovieClipUses:345Used by:Timeline
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:347Used by:349
Symbol 349 MovieClipUses:348Used by:Timeline
Symbol 350 GraphicUsed by:351
Symbol 351 MovieClipUses:350Used by:352
Symbol 352 MovieClipUses:351Used by:Timeline
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:353Used by:355
Symbol 355 MovieClipUses:354Used by:Timeline
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClipUses:356Used by:358
Symbol 358 MovieClipUses:357Used by:Timeline
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClipUses:359Used by:361
Symbol 361 MovieClipUses:360Used by:Timeline
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClipUses:362Used by:364
Symbol 364 MovieClipUses:363Used by:Timeline
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClipUses:365Used by:367
Symbol 367 MovieClipUses:366Used by:Timeline
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:368Used by:370
Symbol 370 MovieClipUses:369Used by:Timeline
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:371Used by:373
Symbol 373 MovieClipUses:372Used by:Timeline
Symbol 374 MovieClipUses:271Used by:Timeline
Symbol 375 MovieClipUses:29Used by:379
Symbol 376 GraphicUsed by:377 379
Symbol 377 MovieClipUses:376Used by:378
Symbol 378 MovieClipUses:377Used by:379
Symbol 379 ButtonUses:375 378 29 376Used by:394
Symbol 380 ButtonUses:81 84 29 82Used by:394 407
Symbol 381 MovieClipUses:29Used by:387
Symbol 382 ShapeTweeningUsed by:383
Symbol 383 MovieClipUses:382 2Used by:387
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:384Used by:387
Symbol 386 MovieClipUses:2Used by:387
Symbol 387 MovieClipUses:381 383 385 386Used by:394
Symbol 388 GraphicUsed by:391 399
Symbol 389 EditableTextUses:61Used by:391
Symbol 390 EditableTextUses:61Used by:391
Symbol 391 MovieClipUses:388 252 254 389 390Used by:394
Symbol 392 TextUses:61Used by:393
Symbol 393 MovieClipUses:392Used by:394
Symbol 394 MovieClipUses:379 380 387 391 393Used by:395
Symbol 395 MovieClipUses:270 271 394Used by:Timeline
Symbol 396 EditableTextUses:61Used by:399
Symbol 397 EditableTextUses:61Used by:399
Symbol 398 TextUses:61Used by:399
Symbol 399 MovieClipUses:388 252 254 396 397 398Used by:407
Symbol 400 MovieClipUses:29Used by:406
Symbol 401 ShapeTweeningUsed by:402
Symbol 402 MovieClipUses:401 2Used by:406
Symbol 403 TextUses:61Used by:404
Symbol 404 MovieClipUses:403Used by:406
Symbol 405 MovieClipUses:2Used by:406
Symbol 406 MovieClipUses:400 402 404 405Used by:407
Symbol 407 MovieClipUses:271 270 380 399 406Used by:Timeline
Symbol 408 MovieClipUses:271Used by:Timeline
Streaming Sound 1Used by:Symbol 9 MovieClip

Instance Names

"end2"Frame 1Symbol 4 MovieClip
"music"Frame 3Symbol 9 MovieClip
"mute"Frame 3Symbol 15 Button
"tut"Frame 3Symbol 20 Button
"high"Frame 3Symbol 24 Button
"inv"Frame 3Symbol 25 Button
"lck"Frame 3Symbol 28 MovieClip
"blocker"Frame 3Symbol 31 MovieClip
"blkr"Frame 3Symbol 38 MovieClip
"ball"Frame 4Symbol 216 MovieClip
"ball2"Frame 4Symbol 219 MovieClip
"pentagon"Frame 4Symbol 222 MovieClip
"pacman"Frame 4Symbol 248 MovieClip
"ball6"Frame 4Symbol 219 MovieClip
"ball5"Frame 4Symbol 219 MovieClip
"ball4"Frame 4Symbol 219 MovieClip
"ball3"Frame 4Symbol 219 MovieClip
"end"Frame 4Symbol 268 MovieClip
"ball"Frame 6Symbol 216 MovieClip
"ball2"Frame 6Symbol 284 MovieClip
"ball2"Frame 6Symbol 286 MovieClip
"ball3"Frame 6Symbol 288 MovieClip
"ball4"Frame 6Symbol 290 MovieClip
"ball5"Frame 6Symbol 292 MovieClip
"ball6"Frame 6Symbol 294 MovieClip
"end"Frame 6Symbol 268 MovieClip
"ball"Frame 7Symbol 216 MovieClip
"ball3"Frame 7Symbol 219 MovieClip
"ball4"Frame 7Symbol 219 MovieClip
"pentagon"Frame 7Symbol 222 MovieClip
"pacman"Frame 7Symbol 248 MovieClip
"ball"Frame 8Symbol 216 MovieClip
"end"Frame 8Symbol 268 MovieClip
"ball2"Frame 8Symbol 219 MovieClip
"ball3"Frame 8Symbol 219 MovieClip
"ball4"Frame 8Symbol 219 MovieClip
"ball5"Frame 8Symbol 219 MovieClip
"ball6"Frame 8Symbol 219 MovieClip
"ball"Frame 9Symbol 216 MovieClip
"ball2"Frame 9Symbol 284 MovieClip
"ball5"Frame 9Symbol 292 MovieClip
"ball6"Frame 9Symbol 294 MovieClip
"ball3"Frame 9Symbol 219 MovieClip
"ball4"Frame 9Symbol 219 MovieClip
"pentagon"Frame 9Symbol 222 MovieClip
"ball"Frame 10Symbol 216 MovieClip
"ball2"Frame 10Symbol 286 MovieClip
"ball3"Frame 10Symbol 288 MovieClip
"ball4"Frame 10Symbol 290 MovieClip
"ball"Frame 11Symbol 216 MovieClip
"ball2"Frame 11Symbol 219 MovieClip
"ball3"Frame 11Symbol 219 MovieClip
"ball4"Frame 11Symbol 219 MovieClip
"ball6"Frame 11Symbol 219 MovieClip
"ball5"Frame 11Symbol 219 MovieClip
"pentagon"Frame 11Symbol 222 MovieClip
"pacman"Frame 11Symbol 248 MovieClip
"ball"Frame 12Symbol 216 MovieClip
"ball5"Frame 12Symbol 292 MovieClip
"ball6"Frame 12Symbol 294 MovieClip
"ball2"Frame 12Symbol 219 MovieClip
"ball3"Frame 12Symbol 219 MovieClip
"ball4"Frame 12Symbol 219 MovieClip
"ball"Frame 13Symbol 216 MovieClip
"ball2"Frame 13Symbol 219 MovieClip
"ball3"Frame 13Symbol 219 MovieClip
"ball4"Frame 13Symbol 219 MovieClip
"ball5"Frame 13Symbol 219 MovieClip
"ball6"Frame 13Symbol 219 MovieClip
"pentagon"Frame 13Symbol 222 MovieClip
"ball"Frame 14Symbol 216 MovieClip
"ball2"Frame 14Symbol 219 MovieClip
"ball3"Frame 14Symbol 219 MovieClip
"ball4"Frame 14Symbol 219 MovieClip
"ball5"Frame 14Symbol 219 MovieClip
"ball6"Frame 14Symbol 294 MovieClip
"ball"Frame 15Symbol 216 MovieClip
"ball2"Frame 15Symbol 219 MovieClip
"ball3"Frame 15Symbol 219 MovieClip
"ball4"Frame 15Symbol 219 MovieClip
"ball5"Frame 15Symbol 219 MovieClip
"ball"Frame 16Symbol 216 MovieClip
"ball6"Frame 16Symbol 294 MovieClip
"ball2"Frame 16Symbol 219 MovieClip
"ball3"Frame 16Symbol 219 MovieClip
"ball4"Frame 16Symbol 219 MovieClip
"pentagon"Frame 16Symbol 222 MovieClip
"ball5"Frame 16Symbol 219 MovieClip
"ball"Frame 17Symbol 216 MovieClip
"ball5"Frame 17Symbol 292 MovieClip
"pentagon"Frame 17Symbol 222 MovieClip
"ball"Frame 18Symbol 216 MovieClip
"end"Frame 18Symbol 268 MovieClip
"ball2"Frame 18Symbol 219 MovieClip
"ball3"Frame 18Symbol 219 MovieClip
"ball4"Frame 18Symbol 219 MovieClip
"ball5"Frame 18Symbol 219 MovieClip
"pentagon"Frame 18Symbol 222 MovieClip
"ball"Frame 19Symbol 216 MovieClip
"ball6"Frame 19Symbol 294 MovieClip
"ball2"Frame 19Symbol 219 MovieClip
"pentagon"Frame 19Symbol 222 MovieClip
"ball5"Frame 19Symbol 219 MovieClip
"ball3"Frame 19Symbol 219 MovieClip
"ball4"Frame 19Symbol 219 MovieClip
"ball"Frame 20Symbol 216 MovieClip
"ball2"Frame 20Symbol 219 MovieClip
"ball3"Frame 20Symbol 219 MovieClip
"ball4"Frame 20Symbol 219 MovieClip
"ball5"Frame 20Symbol 219 MovieClip
"ball6"Frame 20Symbol 219 MovieClip
"ball"Frame 21Symbol 216 MovieClip
"ball2"Frame 21Symbol 219 MovieClip
"ball3"Frame 21Symbol 219 MovieClip
"ball4"Frame 21Symbol 219 MovieClip
"ball5"Frame 21Symbol 219 MovieClip
"ball6"Frame 21Symbol 294 MovieClip
"end3"Frame 21Symbol 374 MovieClip
"ball"Frame 22Symbol 216 MovieClip
"penta"Symbol 222 MovieClip Frame 1Symbol 221 MovieClip
"fade"Symbol 387 MovieClip Frame 1Symbol 386 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS1/AS2.
SWFMetaData (77)Timeline Frame 11284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."
ExportAssets (56)Timeline Frame 1Symbol 1 as "SurpassArcade"
ExportAssets (56)Timeline Frame 1Symbol 409 as "__Packages.mochi.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 410 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 411 as "__Packages.mochi.MochiScores"

Dynamic Text Variables

_root.scoreSymbol 256 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999999</font></p>"
_root.timeSymbol 257 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999</font></p>"
_root.callsSymbol 258 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>"
_root.levelSymbol 259 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>"
_root.scoreSymbol 279 EditableText"<p align="left"></p>"
_root.timeSymbol 280 EditableText"<p align="left"></p>"
_root.scoreSymbol 389 EditableText"<p align="left"></p>"
_root.levelSymbol 390 EditableText"<p align="left"></p>"
_root.scoreSymbol 396 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">9999999</font></p>"
_root.levelSymbol 397 EditableText"<p align="left"><font face="Berlin Sans FB Demi" size="22" color="#000000" letterSpacing="0.000000" kerning="1">99</font></p>"




http://swfchan.com/10/46274/info.shtml
Created: 4/5 -2019 00:10:35 Last modified: 4/5 -2019 00:10:35 Server time: 22/12 -2024 16:36:43