Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 19 MovieClip "ball" in Frame 1
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 250) {
vel_y = 20;
_parent.bar._rotation = -5;
}
this._x = this._x - speed;
}
Instance of Symbol 19 MovieClip "ball" in Frame 1
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 250) {
vel_y = 20;
_parent.bar._rotation = 5;
}
this._x = this._x - speed;
}
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Frame 4
stop();
Frame 5
stop();
levelsmode = false;
endurance = false;
wind = false;
trickmode = false;
dead = false;
instructions = false;
heightmode = false;
zone = false;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
music = true;
onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
removeMovieClip("box");
if (gotogame) {
if (levelsmode) {
gotoAndStop (8);
} else if (endurance) {
if (wind) {
gotoAndStop (10);
} else {
gotoAndStop (12);
}
} else if (trickmode) {
gotoAndStop (14);
} else if (instructions) {
gotoAndStop (6);
} else if (heightmode) {
gotoAndStop (5);
} else if (zone) {
gotoAndStop (16);
}
}
};
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("15f65d40", this, 10301, true);
Instance of Symbol 19 MovieClip "ball" in Frame 5
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 95 MovieClip in Frame 5
onClipEvent (load) {
vel_y = -1;
_parent.startmenu._alpha = 0;
_root.menuchange = false;
_root.menuchange2 = false;
_root.screenchange = false;
_root.gotogame = false;
_root.menuchange3 = false;
}
onClipEvent (enterFrame) {
if (((!vel_y) == 0) && (!_root.screenchange)) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
} else {
_parent.startmenu._alpha = 100;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
} else if ((this._y >= 650) && (_root.screenchange)) {
_root.gotogame = true;
}
this._x = this._x - speed;
}
Instance of Symbol 98 MovieClip in Frame 5
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 101 MovieClip in Frame 5
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 104 MovieClip in Frame 5
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 107 MovieClip in Frame 5
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 148 MovieClip "startmenu" in Frame 5
onClipEvent (enterFrame) {
if (_root.menuchange || (_root.screenchange)) {
this._y = this._y - vel_y;
vel_y--;
} else if (_root.menuchange2 || (_root.menuchange3)) {
this._y = this._y - vel_y;
vel_y--;
} else {
blah = false;
vel_y = 0;
}
if (blah && (vel_y <= 0)) {
vel_y = 0;
_root.menuchange = false;
_root.menuchange2 = false;
_root.menuchange3 = false;
}
if ((this._y >= 700) && (!_root.screenchange)) {
if (_root.menuchange) {
nextFrame();
} else if (_root.menuchange2) {
gotoAndStop ("main");
} else if (_root.menuchange3) {
gotoAndStop (7);
}
this._y = 700;
vel_y = 28;
blah = true;
}
}
Frame 6
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
};
Instance of Symbol 19 MovieClip "ball" in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Instance of Symbol 95 MovieClip in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Instance of Symbol 98 MovieClip in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Instance of Symbol 101 MovieClip in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Instance of Symbol 104 MovieClip in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Instance of Symbol 107 MovieClip in Frame 6
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
vel_y--;
this._y = this._y - vel_y;
if (this._y >= 650) {
vel_y = 35;
}
}
Frame 7
stop();
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
gamestart = true;
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
stop();
timer = 0;
timer2 = 0;
hit = 0;
line = 0;
line2 = 0;
scoreline = 0;
scoreplusthing = 0;
_root.onEnterFrame = function () {
if ((box.hitTest(ball) && (ball.yspeed >= 0)) && ((!hit) >= 1)) {
hit = hit + 1;
}
timer++;
if (timer >= 30) {
timer = 0;
removeMovieClip(box);
hit = 0;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
}
};
Instance of Symbol 19 MovieClip "ball" in Frame 7
onClipEvent (load) {
this._x = 300;
this._y = -100;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 1;
array = new Array(360);
inverse = false;
dupsgone = false;
}
onClipEvent (enterFrame) {
if (_parent.gamestart) {
if (this._y <= -50) {
_parent.ballshower._visible = true;
} else {
_parent.ballshower._visible = false;
}
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
if (inverse) {
yspeed = yspeed - gravity;
} else {
yspeed = yspeed + gravity;
}
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if (this._y >= 650) {
yspeed = -50;
}
}
}
Instance of Symbol 172 MovieClip "ballshower" in Frame 7
onClipEvent (enterFrame) {
this._y = 50;
this._x = _parent.ball._x;
}
Frame 8
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
timer2 = 0;
score = 0;
hit = 0;
line = 0;
line2 = 0;
dead = false;
gamestart = false;
_root.onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
if (!dead) {
if (gamestart) {
score = score + 1;
inst._visible = false;
}
dist = Math.round(1400 - Math.abs(ball._y));
camera._y = ball._y;
camera._x = ball._x;
if ((box.hitTest(ball) && (ball.yspeed >= 0)) && ((!hit) >= 1)) {
hit = hit + 1;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
xpoint2 = _xmouse;
ypoint2 = _ymouse;
} else {
line = Math.round(((xpoint2 - xpoint) * (xpoint2 - xpoint)) + ((ypoint2 - ypoint) * (ypoint2 - ypoint)));
line2 = Math.sqrt(line);
scoreline = Math.round((600 - line2) / 10);
}
}
};
Instance of Symbol 19 MovieClip "ball" in Frame 8
onClipEvent (load) {
this._x = 275;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
inverse = false;
dupsgone = false;
}
onClipEvent (enterFrame) {
if ((!_parent.dead) && (_parent.gamestart)) {
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + (yspeed * 2));
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if (this._y <= -1400) {
_root.dead = true;
}
if (this._y >= 600) {
_root.dead = true;
_root.score = _root.score + 5000000;
}
} else if (_root.dead) {
_parent.gotoAndStop("deadspeed");
}
}
Frame 9
stop();
removeMovieClip("box");
submit.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = _root.namevar.text;
ab20_09.x = score;
ab20_09.c = 289;
ab20_09.v = "ZZTQMC";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit._x = -1000;
};
Frame 10
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
wind = 0;
windtimer = 0;
stop();
timer = 0;
timer2 = 0;
score = 0;
hit = 0;
line = 0;
line2 = 0;
scoreline = 0;
gamestart = false;
dead = false;
_root.onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
if (!dead) {
if (gamestart) {
structions2._visible = false;
score = score + 1;
changetime = Math.round((500 - windtimer) / 10);
windtimer++;
if (windtimer >= 500) {
windtimer = 0;
wind = random(20) - random(20);
}
}
windabs = Math.abs(wind);
if ((box.hitTest(ball) && (ball.yspeed >= 0)) && ((!hit) >= 1)) {
hit = hit + 1;
score = score + scoreline;
}
timer++;
if (timer >= 30) {
timer = 0;
removeMovieClip(box);
hit = 0;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
xpoint2 = _xmouse;
ypoint2 = _ymouse;
}
box._x = box._x - wind;
line = Math.round(((xpoint2 - xpoint) * (xpoint2 - xpoint)) + ((ypoint2 - ypoint) * (ypoint2 - ypoint)));
line2 = Math.sqrt(line);
scoreline = Math.round((600 - line2) / 10);
clouds._x = clouds._x - wind;
if (clouds._x < -1080) {
clouds._x = -80;
}
if (clouds._x > -80) {
clouds._x = -1080;
}
} else if (dead) {
gotoAndStop (11);
}
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 222 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.wind > 0) {
this._rotation = 90;
this._alpha = 100;
} else if (_root.wind < 0) {
this._rotation = -90;
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 19 MovieClip "ball" in Frame 10
onClipEvent (load) {
this._x = 300;
this._y = -100;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 1;
array = new Array(360);
inverse = false;
dupsgone = false;
}
onClipEvent (enterFrame) {
if ((!_parent.dead) && (_parent.gamestart)) {
if (this._y <= -50) {
_parent.ballshower._visible = true;
} else {
_parent.ballshower._visible = false;
}
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
if (inverse) {
yspeed = yspeed - gravity;
} else {
yspeed = yspeed + gravity;
}
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if (this._y >= 700) {
_parent.dead = true;
}
}
}
Instance of Symbol 172 MovieClip "ballshower" in Frame 10
onClipEvent (enterFrame) {
this._y = 50;
this._x = _parent.ball._x;
}
Frame 11
stop();
onEnterFrame = function () {
removeMovieClip("box");
};
submit.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = _root.namevar.text;
ab20_09.x = score;
ab20_09.c = 291;
ab20_09.v = "PPKKKG";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit._x = -1000;
};
Instance of Symbol 19 MovieClip "ball" in Frame 11
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 95 MovieClip in Frame 11
onClipEvent (load) {
vel_y = -1;
_parent.startmenu._alpha = 0;
_root.menuchange = false;
_root.menuchange2 = false;
_root.screenchange = false;
_root.gotogame = false;
_root.menuchange3 = false;
}
onClipEvent (enterFrame) {
if (((!vel_y) == 0) && (!_root.screenchange)) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
} else {
_parent.startmenu._alpha = 100;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
} else if ((this._y >= 650) && (_root.screenchange)) {
_root.gotogame = true;
}
this._x = this._x - speed;
}
Instance of Symbol 98 MovieClip in Frame 11
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 101 MovieClip in Frame 11
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 104 MovieClip in Frame 11
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Instance of Symbol 107 MovieClip in Frame 11
onClipEvent (load) {
vel_y = -1;
}
onClipEvent (enterFrame) {
if ((!vel_y) == 0) {
vel_y--;
} else if (_root.screenchange) {
vel_y--;
}
this._y = this._y - vel_y;
if ((this._y >= 650) && (!_root.screenchange)) {
vel_y = 35;
}
this._x = this._x - speed;
}
Frame 12
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
wind = 0;
windtimer = 0;
stop();
timer = 0;
timer2 = 0;
score = 0;
hit = 0;
line = 0;
line2 = 0;
scoreline = 0;
maxtime = 30;
dead = false;
gamestart = false;
_root.onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
if (!dead) {
if (score >= 10000) {
ball.gravity = 2;
}
if (score >= 5000) {
maxtime = 20;
}
if (gamestart) {
structions2._visible = false;
score = score + 1;
}
if ((box.hitTest(ball) && (ball.yspeed >= 0)) && ((!hit) >= 1)) {
hit = hit + 1;
score = score + scoreline;
}
timer++;
if (timer >= maxtime) {
timer = 0;
removeMovieClip(box);
hit = 0;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
xpoint2 = _xmouse;
ypoint2 = _ymouse;
}
line = Math.round(((xpoint2 - xpoint) * (xpoint2 - xpoint)) + ((ypoint2 - ypoint) * (ypoint2 - ypoint)));
line2 = Math.sqrt(line);
scoreline = Math.round((600 - line2) / 10);
} else if (dead) {
gotoAndStop (13);
}
};
Instance of Symbol 19 MovieClip "ball" in Frame 12
onClipEvent (load) {
this._x = 300;
this._y = -100;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 1;
array = new Array(360);
inverse = false;
dupsgone = false;
}
onClipEvent (enterFrame) {
if ((!_parent.dead) && (_parent.gamestart)) {
if (this._y <= -50) {
_parent.ballshower._visible = true;
} else {
_parent.ballshower._visible = false;
}
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
if (inverse) {
yspeed = yspeed - gravity;
} else {
yspeed = yspeed + gravity;
}
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if (this._y >= 700) {
_parent.dead = true;
}
}
}
Instance of Symbol 172 MovieClip "ballshower" in Frame 12
onClipEvent (enterFrame) {
this._y = 50;
this._x = _parent.ball._x;
}
Frame 13
stop();
removeMovieClip("box");
submit.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = _root.namevar.text;
ab20_09.x = score;
ab20_09.c = 290;
ab20_09.v = "JJIZUU";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit._x = -1000;
};
Frame 14
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
ballcount = 0;
stop();
wind = 0;
timer = 0;
timer2 = 0;
score = 0;
hit = 0;
line = 0;
line2 = 0;
scoreline = 0;
scoreplusthing = 0;
gamestart = false;
dead = false;
poweruptimer = 0;
powerupnumber = 0;
powerup = false;
windtimer = 0;
zonebox._visible = false;
dupcount = 1;
gravity = 1;
ballwidth = 40;
ballheight = 40;
powerup = false;
_root.onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
if (!dead) {
if (gamestart) {
structions._visible = false;
changetime = Math.round((500 - windtimer) / 10);
windtimer++;
if (windtimer >= 500) {
windtimer = 0;
wind = random(20) - random(20);
}
windabs = Math.abs(wind);
poweruptimer++;
if (poweruptimer >= 500) {
ballwidth = 40;
ballheight = 40;
pointzone = false;
poweruptimer = 0;
powerupnumber = random(50);
powerup = true;
}
if (powerup) {
if ((powerupnumber >= 0) && (powerupnumber <= 10)) {
duplicateMovieClip ("ball", "ball" + dupcount, dupcount);
doubleball = true;
} else if ((powerupnumber > 10) && (powerupnumber <= 20)) {
ballwidth = 20;
ballheight = 20;
tripleball = true;
} else if ((powerupnumber > 20) && (powerupnumber <= 30)) {
gravity = gravity / 2;
halfgrav = true;
} else if ((powerupnumber > 30) && (powerupnumber <= 40)) {
gravity = gravity * 2;
doublegrav = true;
} else if ((powerupnumber > 40) && (powerupnumber <= 50)) {
pointzone = true;
pointtext = true;
}
powerup = false;
}
if (pointzone) {
zonebox._visible = true;
} else {
zonebox._visible = false;
}
scoreplusthing = (scoreline + Math.round(ball.yspeed)) + Math.round(Math.abs(ball.xspeed));
timer++;
if (timer >= 30) {
timer = 0;
removeMovieClip("box");
hit = 0;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
xpoint2 = _xmouse;
ypoint2 = _ymouse;
}
line = Math.round(((xpoint2 - xpoint) * (xpoint2 - xpoint)) + ((ypoint2 - ypoint) * (ypoint2 - ypoint)));
line2 = Math.sqrt(line);
scoreline = Math.round((600 - line2) / 10);
clouds._x = clouds._x - wind;
if (clouds._x < -1080) {
clouds._x = -80;
}
if (clouds._x > -80) {
clouds._x = -1080;
}
box._x = box._x - wind;
}
} else if (dead) {
gotoAndStop ("deadtrick");
}
};
Instance of Symbol 222 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.wind > 0) {
this._rotation = 90;
this._alpha = 100;
} else if (_root.wind < 0) {
this._rotation = -90;
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 243 MovieClip in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - vel_y;
if (_root.halfgrav == true) {
vel_y = 30;
_root.halfgrav = false;
}
if ((this._y >= 610) && (_root.halfgrav == false)) {
this._y = 610;
} else {
vel_y--;
}
}
Instance of Symbol 246 MovieClip in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - vel_y;
if (_root.doublegrav == true) {
vel_y = 30;
_root.doublegrav = false;
}
if ((this._y >= 610) && (_root.doublegrav == false)) {
this._y = 610;
} else {
vel_y--;
}
}
Instance of Symbol 249 MovieClip in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - vel_y;
if (_root.pointtext == true) {
vel_y = 30;
_root.pointtext = false;
}
if ((this._y >= 610) && (_root.pointtext == false)) {
this._y = 610;
} else {
vel_y--;
}
}
Instance of Symbol 19 MovieClip "ball" in Frame 14
onClipEvent (load) {
this._x = 300;
this._y = -100;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = _root.gravity;
array = new Array(360);
inverse = false;
dupsgone = false;
_root.ballcount = _root.ballcount + 1;
_root.dupcount = _root.dupcount + 1;
minusball = false;
ballgone = false;
_width = _root.ballwidth;
_height = _root.ballheight;
}
onClipEvent (enterFrame) {
if (((!_parent.dead) && (_parent.gamestart)) && (!ballgone)) {
r = _width / 2;
if ((this.hitTest(_root.box) && (yspeed >= 0)) && ((!_root.hit) >= 1)) {
_root.score = _root.score + _root.scoreplusthing;
_root.hit = _root.hit + 1;
}
_width = _root.ballwidth;
_height = _root.ballheight;
if (this.hitTest(_root.zonebox) && (_root.pointzone)) {
_root.score = _root.score + 1;
}
gravity = _root.gravity;
if (this._y <= -50) {
_parent.ballshower._visible = true;
} else {
_parent.ballshower._visible = false;
}
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
if (inverse) {
yspeed = yspeed - gravity;
} else {
yspeed = yspeed + gravity;
}
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if ((this._y >= 700) && (_root.ballcount <= 1)) {
_parent.dead = true;
} else if (((this._y >= 700) && (_root.ballcount > 1)) && (!minusball)) {
_root.ballcount = _root.ballcount - 1;
minusball = true;
ballgone = true;
}
}
}
Instance of Symbol 252 MovieClip in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - vel_y;
if (_root.doubleball == true) {
vel_y = 30;
_root.doubleball = false;
}
if ((this._y >= 610) && (_root.doubleball == false)) {
this._y = 610;
} else {
vel_y--;
}
}
Instance of Symbol 255 MovieClip in Frame 14
onClipEvent (enterFrame) {
this._y = this._y - vel_y;
if (_root.tripleball == true) {
vel_y = 30;
_root.tripleball = false;
}
if ((this._y >= 610) && (_root.tripleball == false)) {
this._y = 610;
} else {
vel_y--;
}
}
Frame 15
stop();
removeMovieClip("box");
submit.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = _root.namevar.text;
ab20_09.x = score;
ab20_09.c = 293;
ab20_09.v = "DYKACJ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit._x = -1000;
};
Frame 16
_root.onMouseDown = function () {
xpoint = _xmouse;
ypoint = _ymouse;
write = true;
};
_root.onMouseUp = function () {
write = false;
timer = 0;
timer2 = 0;
hit = 0;
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
timer = 0;
timer2 = 0;
score = 0;
hit = 0;
line = 0;
line2 = 0;
gamestart = false;
dead = false;
_root.onEnterFrame = function () {
if (Key.isDown(49) && (music)) {
stopAllSounds();
music = false;
}
if (Key.isDown(50) && (!music)) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
music = true;
}
if (gamestart) {
structions._visible = false;
startb._visible = false;
if (!dead) {
boxthing = zonecount + 1;
if (zonebox.hitTest(ball)) {
_root.score = _root.score + boxthing;
zonetimer++;
} else {
zonetimer = 0;
zonecount = 0;
}
if (zonetimer >= 50) {
zonetimer = 0;
zonecount = zonecount + 1;
}
if ((box.hitTest(ball) && (ball.yspeed >= 0)) && ((!hit) >= 1)) {
hit = hit + 1;
}
timer++;
if (timer >= 30) {
timer = 0;
removeMovieClip(box);
hit = 0;
}
if (write) {
timer2++;
if (timer2 >= 30) {
write = false;
}
createEmptyMovieClip("box", 1);
with (box) {
moveTo(xpoint, ypoint);
lineStyle(30, 0, 100);
lineTo(_root._xmouse, _root._ymouse);
}
xpoint2 = _xmouse;
ypoint2 = _ymouse;
}
} else if (dead) {
gotoAndStop ("dead6");
}
}
};
Instance of Symbol 19 MovieClip "ball" in Frame 16
onClipEvent (load) {
this._x = 300;
this._y = -100;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 1;
array = new Array(360);
inverse = false;
dupsgone = false;
}
onClipEvent (enterFrame) {
if ((!_parent.dead) && (_parent.gamestart)) {
if (this._y <= -50) {
_parent.ballshower._visible = true;
} else {
_parent.ballshower._visible = false;
}
if (yspeed >= 28) {
yspeed = 28;
}
if (yspeed <= -28) {
yspeed = -28;
}
i = 0;
while (i < 360) {
x = _x + (r * Math.cos((i / 180) * Math.PI));
y = _y - (r * Math.sin((i / 180) * Math.PI));
(_root.box.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
if (inverse) {
yspeed = yspeed - gravity;
} else {
yspeed = yspeed + gravity;
}
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (this._x <= 0) {
xspeed = 5;
} else if (this._x >= 550) {
xspeed = -5;
}
if (this._y >= 700) {
_parent.dead = true;
}
}
}
Instance of Symbol 172 MovieClip "ballshower" in Frame 16
onClipEvent (enterFrame) {
this._y = 50;
this._x = _parent.ball._x;
}
Frame 17
stop();
removeMovieClip("box");
submit.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = _root.namevar.text;
ab20_09.x = score;
ab20_09.c = 292;
ab20_09.v = "QXQMTM";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit._x = -1000;
};
Symbol 19 MovieClip Frame 1
stop();
Symbol 21 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 30 MovieClip Frame 1
stopAllSounds();
Symbol 30 MovieClip Frame 100
_root.play();
_root.play();
Symbol 80 MovieClip Frame 31
stop();
Symbol 81 MovieClip Frame 60
stop();
_root.play();
Symbol 83 Button
on (release) {
getURL ("http://www.mochibot.com", "_blank");
}
Symbol 88 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 110 Button
on (release) {
_root.menuchange = true;
}
Symbol 113 Button
on (release) {
_root.menuchange3 = true;
}
Symbol 116 Button
on (release) {
_root.instructions = true;
_root.screenchange = true;
}
Symbol 131 Button
on (release) {
_root.menuchange2 = true;
}
Symbol 133 Button
on (release) {
_root.screenchange = true;
_root.levelsmode = true;
}
Symbol 135 Button
on (release) {
_root.screenchange = true;
_root.endurance = true;
}
Symbol 137 Button
on (release) {
_root.screenchange = true;
_root.endurance = true;
_root.wind = true;
}
Symbol 139 Button
on (release) {
_root.screenchange = true;
_root.trickmode = true;
}
Symbol 142 Button
on (release) {
_root.screenchange = true;
_root.zone = true;
}
Symbol 143 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=289", _blank);
}
Symbol 144 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=290", _blank);
}
Symbol 145 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=291", _blank);
}
Symbol 146 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=293", _blank);
}
Symbol 147 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=292", _blank);
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 150 MovieClip Frame 10
stop();
Symbol 151 Button
on (release) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 152 MovieClip Frame 1
stopAllSounds();
Symbol 166 Button
on (release) {
gotoAndStop (5);
}
Symbol 170 Button
on (release) {
nextFrame();
}
Symbol 176 Button
on (release) {
stopAllSounds();
tellTarget ("song2") {
gotoAndPlay (5);
_root.song2 = true;
_root.song1 = false;
_root.song3 = false;
};
}
Symbol 179 Button
on (release) {
stopAllSounds();
tellTarget ("song3") {
gotoAndPlay (5);
_root.song3 = true;
_root.song2 = false;
_root.song1 = false;
};
}
Symbol 182 Button
on (release) {
stopAllSounds();
tellTarget ("song1") {
gotoAndPlay (5);
_root.song1 = true;
_root.song2 = false;
_root.song3 = false;
};
}
Symbol 185 Button
on (release) {
stopAllSounds();
}
Symbol 191 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 201 Button
on (release) {
_root.gamestart = true;
startb._visible = false;
}
Symbol 207 Button
on (release) {
prevFrame();
dead = false;
gamestart = false;
}
Symbol 214 Button
on (release) {
gotoAndStop (5);
}
Symbol 271 Button
on (release) {
_root.gamestart = true;
}