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();