Frame 1
_quality = "medium";
men = new ContextMenu();
hi = new ContextMenuItem("Quality: High", function () {
_quality = "HIGH";
});
med = new ContextMenuItem("Quality: Medium", function () {
_quality = "MEDIUM";
});
lo = new ContextMenuItem("Quality: Low", function () {
_quality = "LOW";
});
sfb = new ContextMenuItem("SuperFlashBros.net", function () {
getURL ("http://www.superflashbros.net", "_blank");
}, true);
agms = new ContextMenuItem("ArmorGames.com", function () {
getURL ("http://www.armorgames.com", "_blank");
});
agm = new ContextMenuItem("Play More Games!", function () {
getURL ("http://www.armorgames.com", "_blank");
});
men.hideBuiltInItems();
men.customItems.push(hi);
men.customItems.push(med);
men.customItems.push(lo);
men.customItems.push(sfb);
men.customItems.push(agms);
men.customItems.push(agm);
_root.menu = men;
_root.tabEnabled = false;
Instance of Symbol 44 MovieClip in Frame 1
onClipEvent (enterFrame) {
var num = Math.ceil((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
this.gotoAndStop(num);
}
Instance of Symbol 55 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 58 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.superflashbros.net", "_blank");
};
}
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 3
stopAllSounds();
stop();
Instance of Symbol 72 MovieClip in Frame 3
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay("intro");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 72 MovieClip in Frame 3
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.superflashbros.net", "_blank");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 72 MovieClip in Frame 3
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 72 MovieClip in Frame 3
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 74 MovieClip in Frame 3
onClipEvent (load) {
this.onRelease = function () {
if (_root._xmouse > 275) {
getURL ("http://www.armorgames.com", "_blank");
} else {
getURL ("http://www.superflashbros.net", "_blank");
}
};
}
Instance of Symbol 85 MovieClip in Frame 3
onClipEvent (load) {
saved = SharedObject.getLocal("jamescircus");
if (!saved.data.unlocked) {
this._alpha = 50;
this.b1.enabled = false;
this.b2.enabled = false;
}
}
Instance of Symbol 72 MovieClip in Frame 4
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("main");
};
}
Frame 1087
stop();
Instance of Symbol 381 MovieClip in Frame 1087
onClipEvent (load) {
_yscale = 100;
_xscale = 100;
}
Instance of Symbol 383 MovieClip "score_board" in Frame 1087
onClipEvent (load) {
function addScore() {
score = score + 100;
}
score = 0;
ended = false;
this.onEnterFrame = function () {
if (ended) {
display = score.toString();
while (display.length < 6) {
display = "0" + display;
}
this.txt.text = display;
e_count = 0;
this.onEnterFrame = function () {
if ((e_count++) > 20) {
_root.game = "main";
_root.final_score = Number(display);
stopAllSounds();
_root.gotoAndStop("score");
}
};
} else {
if (score > 0) {
score = score - 1;
}
display = score.toString();
while (display.length < 6) {
display = "0" + display;
}
this.txt.text = display;
}
};
}
Frame 1088
_root.gotoAndStop("main");
Frame 1089
stop();
Instance of Symbol 409 MovieClip "timer" in Frame 1089
onClipEvent (load) {
min = 0;
ended = false;
started = false;
this.onEnterFrame = function () {
if (started && (!ended)) {
now = getTimer();
time = now - start_time;
secs = Math.round(time / 1000);
hsecs = Math.round(time / 10) - (Math.round(time / 1000) * 100);
if (hsecs < 0) {
hsecs = hsecs + 100;
}
if (hsecs < 10) {
hsecs = "0" + hsecs;
}
if (secs < 100) {
if (secs < 10) {
secs = "00" + secs;
} else {
secs = "0" + secs;
}
}
display = (secs + ".") + hsecs;
this.txt.text = display;
}
if (ended) {
_root.final_score = Number(display);
_root.game = "ball";
e_count = 0;
this.onEnterFrame = function () {
if ((e_count++) > 15) {
stopAllSounds();
_root.gotoAndStop("score");
}
};
}
};
}
Frame 1090
stop();
Instance of Symbol 383 MovieClip "score_board" in Frame 1090
onClipEvent (load) {
score = 0;
replay = 0;
ended = false;
reset = function () {
_root.level.zebra.gotoAndStop(1);
_root.level.zebra.burned = false;
_root.level.zebra.fired = false;
_root.level.zebra._x = -100;
_root.level.zebra._y = 200;
_root.level.zebra.onEnterFrame = _root.level.zebra.fly;
_root.level.cannon.onEnterFrame = _root.level.cannon.aimLeft;
_root.level.lf.passed = false;
_root.level.lf.rand();
_root.level._x = 0;
_root.level.bg._x = 0;
_root.dr.gotoAndStop(2);
};
norm = function () {
if (ended) {
e_count = 0;
this.onEnterFrame = function () {
if ((e_count++) > 30) {
replay++;
if (replay > 5) {
_root.game = "cannon";
stopAllSounds();
_root.gotoAndStop("score");
} else {
this.onEnterFrame = norm;
ended = false;
reset();
}
}
};
} else {
display = _root.final_score.toString();
while (display.length < 6) {
display = "0" + display;
}
this.txt.text = display;
}
};
this.onEnterFrame = norm;
}
Frame 1091
saved = SharedObject.getLocal("jamescircus");
if (saved.data.unlocked != true) {
saved.data.unlocked = true;
saved.flush();
}
stop();
Instance of Symbol 72 MovieClip in Frame 1091
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
stopAllSounds();
_root.gotoAndStop(_root.game);
};
}
Instance of Symbol 72 MovieClip in Frame 1091
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("menu");
};
}
Instance of Symbol 72 MovieClip in Frame 1091
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 72 MovieClip in Frame 1091
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
if (_root.game == "main") {
getURL ("http://armorbot.com/mytable/?id=765", "_blank");
} else if (_root.game == "ball") {
getURL ("http://armorbot.com/mytable/?id=767", "_blank");
} else if (_root.game == "cannon") {
getURL ("http://armorbot.com/mytable/?id=766", "_blank");
}
};
}
Instance of Symbol 446 MovieClip "scoretable" in Frame 1091
onClipEvent (load) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
if (_root.game == "main") {
__top10_send__.hid = 765;
__top10_send__.kid = "DPWSGQ";
} else if (_root.game == "ball") {
__top10_send__.hid = 767;
__top10_send__.kid = "LUUEWO";
} else if (_root.game == "cannon") {
__top10_send__.hid = 766;
__top10_send__.kid = "BGVTBN";
}
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
_root.scoretable.gotoAndStop(2);
i = 1;
while (i < 9) {
_root.scoretable["n" + i].text = __top10_receive__["name" + i];
_root.scoretable["s" + i].text = Number(__top10_receive__["score" + i]) / 100;
i++;
}
} else {
_root.scoretable.gotoAndStop(3);
}
};
}
Instance of Symbol 449 MovieClip in Frame 1091
onClipEvent (load) {
this.score.text = _root.final_score;
}
Symbol 2 MovieClip [Small Ball] Frame 1
#initclip 13
Object.registerClass("Small Ball", SmallBall);
#endinitclip
Symbol 23 MovieClip [Ball Zebra] Frame 1
#initclip 11
Object.registerClass("Ball Zebra", BallZebra);
#endinitclip
stop();
Symbol 35 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 36 MovieClip Frame 1
stop();
Symbol 39 MovieClip [Trampoline] Frame 1
#initclip 12
Object.registerClass("Trampoline", Trampoline);
#endinitclip
Symbol 44 MovieClip Frame 1
stop();
Symbol 450 MovieClip [__Packages.BallZebra] Frame 0
class BallZebra extends MovieClip
{
var ball, _x, _y, james, gotoAndStop, onEnterFrame, _parent;
function BallZebra () {
super();
}
function ballance() {
fall();
control();
ball._rotation = ball._rotation + 3;
_x = _x + 2;
follow();
generateBall();
if (_y < 135) {
speed_y = speed_y + 1.5;
_y = _y + speed_y;
if (_y > 135) {
speed_y = 0;
_y = 135;
}
} else {
speed_y = 0;
_y = 135;
}
}
function reballance(p_num) {
speed_angle = speed_angle + (p_num + (james._rotation / 120));
}
function jump() {
speed_y = -12;
_y = 125;
}
function control() {
if (Key.isDown(37) && (!left_down)) {
left_down = true;
} else if ((!Key.isDown(37)) && (left_down)) {
reballance(-1);
left_down = false;
}
if (Key.isDown(39) && (!right_down)) {
right_down = true;
} else if ((!Key.isDown(39)) && (right_down)) {
reballance(1);
right_down = false;
}
if ((Key.isDown(38) && (!up_down)) && (_y == 135)) {
jump();
up_down = true;
} else if ((!Key.isDown(38)) && (up_down)) {
up_down = false;
}
}
function fall() {
if (james._rotation == 0) {
james._rotation = 0.1;
}
speed_angle = speed_angle + (james._rotation / 300);
james._rotation = james._rotation + speed_angle;
if (james._rotation > 100) {
gotoAndStop(2);
onEnterFrame = null;
_root.timer.ended = true;
_y = 135;
} else if (james._rotation < -100) {
gotoAndStop(3);
onEnterFrame = null;
_root.timer.ended = true;
_y = 135;
}
}
function follow() {
if ((_parent._x + _x) > 200) {
_parent._x = _parent._x - (((_x + _parent._x) - 200) / 5);
if ((_parent._x + _parent.bg._x) < -1010) {
_parent.bg._x = _parent.bg._x + 1010;
}
}
}
function generateBall() {
if ((ball_count++) > ball_gap) {
ball_count = 0;
_parent.balls.attachMovie("Small Ball", "ball" + _parent.balls.getNextHighestDepth(), _parent.balls.getNextHighestDepth());
ball_gap = 30 + Math.round(Math.random() * 60);
}
}
var left_down = false;
var right_down = false;
var up_down = false;
var speed_angle = 0;
var speed_y = 0;
var ball_gap = 60;
var ball_count = 0;
var end_count = 0;
}
Symbol 451 MovieClip [__Packages.Trampoline] Frame 0
class Trampoline extends MovieClip
{
var onEnterFrame, hit, _parent, skin;
function Trampoline () {
super();
onEnterFrame = bounce;
}
function bounce() {
if (hit.hitTest(_parent.zebra._x + _parent._x, (_parent.zebra._y + _parent._y) + 20, true)) {
_parent.zebra.speed_y = -18;
_parent.zebra.spinned = false;
skin.gotoAndStop(2);
}
}
}
Symbol 452 MovieClip [__Packages.SmallBall] Frame 0
class SmallBall extends MovieClip
{
var _y, _x, _parent, onEnterFrame, _rotation, _alpha;
function SmallBall () {
super();
_y = 160;
_x = _parent._parent.zebra._x + 350;
onEnterFrame = roll;
}
function roll() {
_x = _x - 10;
_rotation = _rotation - 30;
if ((!hit) && (_parent._parent.zebra.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true))) {
_parent._parent.zebra.speed_angle = _parent._parent.zebra.speed_angle + ((Math.round(Math.random()) * 3) - 1.5);
hit = true;
} else if (hit) {
_alpha = _alpha - 20;
}
}
var hit = false;
}
Symbol 453 MovieClip [__Packages.Trapeze] Frame 0
class Trapeze extends MovieClip
{
var onEnterFrame, _rotation, _parent, _x, _y, hit;
function Trapeze () {
super();
onEnterFrame = swingWithout;
}
function swingWith() {
speed_angle = speed_angle - (_rotation / 60);
_rotation = _rotation + speed_angle;
if (speed_angle > 0) {
_parent.zebra._xscale = -100;
} else {
_parent.zebra._xscale = 100;
}
_parent.zebra._rotation = _rotation;
var _local2 = (Math.PI * _rotation) / 180;
_parent.zebra._x = _x + (190 * (-Math.sin(_local2)));
_parent.zebra._y = _y + (190 * Math.cos(_local2));
}
function swingWithout() {
speed_angle = speed_angle - (_rotation / 60);
_rotation = _rotation + speed_angle;
if (hit.hitTest(_parent.zebra._x + _parent._x, _parent.zebra._y + _parent._y, true)) {
onEnterFrame = swingWith;
_parent.zebra.onEnterFrame = _parent.zebra.swing;
_parent.zebra.trapeze = this;
}
}
function swingBetween() {
speed_angle = speed_angle - (_rotation / 60);
_rotation = _rotation + speed_angle;
if ((between_count++) > 20) {
between_count = 0;
onEnterFrame = swingWithout;
}
}
var speed_angle = 0;
var between_count = 0;
}
Symbol 454 MovieClip [__Packages.Animal] Frame 0
class Animal extends MovieClip
{
var gotoAndStop, onEnterFrame, _parent, _currentframe;
function Animal () {
super();
var _local3 = Math.ceil(Math.random() * 5);
gotoAndStop(_local3);
onEnterFrame = collect;
}
function collect() {
if (_parent.zebra.hitTest(this) && (_currentframe != 6)) {
_root.score_board.addScore();
gotoAndStop(6);
}
}
}
Symbol 455 MovieClip [__Packages.CircusZebra] Frame 0
class CircusZebra extends MovieClip
{
var onEnterFrame, _y, _x, _xscale, gotoAndStop, tight_rope, _rotation, trapeze, _parent;
function CircusZebra () {
super();
onEnterFrame = fly;
}
function gravity() {
speed_y = speed_y + 0.8;
if (speed_y > 15) {
speed_y = 15;
}
}
function moveAbout(p_if) {
if (p_if != true) {
if (speed_x > 8) {
speed_x = 8;
} else if (speed_x < -8) {
speed_x = -8;
}
if (speed_y > 15) {
speed_x = 15;
} else if (speed_y < -25) {
speed_x = -25;
}
if (_y < -100) {
_y = -100;
speed_y = 0;
}
}
_x = _x + speed_x;
_y = _y + speed_y;
if (_y > 400) {
die();
}
}
function moveLeft() {
_xscale = -100;
if (speed_x > -8) {
speed_x = speed_x - 4;
} else {
speed_x = -8;
}
}
function moveRight() {
_xscale = 100;
if (speed_x < 8) {
speed_x = speed_x + 4;
} else {
speed_x = 8;
}
}
function fly() {
if (!spinning) {
gotoAndStop(3);
}
if (Key.isDown(37)) {
moveLeft();
}
if (Key.isDown(39)) {
moveRight();
}
if (!spinned) {
if (Key.isDown(38) && (!up_down)) {
up_down = true;
} else if ((!Key.isDown(38)) && (up_down)) {
up_down = false;
gotoAndStop(7);
spinning = true;
spinned = true;
}
}
gravity();
moveAbout();
follow();
}
function walk() {
spinned = false;
speed_x = 0;
if (Key.isDown(37)) {
gotoAndStop(5);
_xscale = -100;
if (_x > ((30 + tight_rope._x) - (tight_rope._width / 2))) {
_x = _x - 3;
}
} else if (Key.isDown(39)) {
gotoAndStop(5);
_xscale = 100;
if (_x < ((-30 + tight_rope._x) + (tight_rope._width / 2))) {
_x = _x + 3;
}
} else {
gotoAndStop(1);
}
if (_x < ((30 + tight_rope._x) - (tight_rope._width / 2))) {
_x = (30 + tight_rope._x) - (tight_rope._width / 2);
} else if (_x > ((-30 + tight_rope._x) + (tight_rope._width / 2))) {
_x = (-30 + tight_rope._x) + (tight_rope._width / 2);
}
if (Key.isDown(38)) {
gotoAndStop(2);
speed_y = ((tight_rope.center_y_speed / 2) - 12) - (tight_rope.center_y_normal / 6);
tight_rope.onEnterFrame = tight_rope.still;
_y = tight_rope._y - 23;
tight_rope.center_y_speed = -20;
onEnterFrame = fly;
}
follow();
}
function swing() {
spinned = false;
gotoAndStop(4);
if (Key.isDown(38) && (!up_down)) {
up_down = true;
_rotation = 0;
speed_x = (_x - last_x) * 1.5;
if (speed_x > 8) {
speed_x = 8;
} else if (speed_x < -8) {
speed_x = -8;
}
_x = _x + speed_x;
speed_y = (_y - last_y) - 5;
if (speed_y > 15) {
speed_y = 15;
}
onEnterFrame = fly;
trapeze.onEnterFrame = trapeze.swingBetween;
} else if ((!Key.isDown(38)) && (up_down)) {
up_down = false;
}
last_x = _x;
last_y = _y;
follow();
}
function follow() {
if (_x > 275) {
_parent._x = _parent._x - (((_x + _parent._x) - 275) / 5);
if ((_parent._x + _parent.bg._x) < -1010) {
_parent.bg._x = _parent.bg._x + 1010;
} else if ((_parent._x + _parent.bg._x) > 0) {
_parent.bg._x = _parent.bg._x - 1010;
}
}
}
function fire(p_x, p_y, p_angle, p_speed) {
_x = p_x;
_y = p_y;
_rotation = p_angle;
var _local2 = (Math.PI * p_angle) / 180;
speed_x = p_speed * (-Math.sin(-_local2));
speed_y = p_speed * (-Math.cos(-_local2));
onEnterFrame = shot;
}
function shot() {
gravity2();
moveAbout(true);
_rotation = (180 * Math.atan2(speed_x, -speed_y)) / Math.PI;
}
function gravity2() {
speed_y = speed_y + 1;
}
function die() {
_root.play();
}
function reset() {
}
var speed_x = 0;
var speed_y = 0;
var last_x = 0;
var last_y = 0;
var up_down = true;
var spinning = false;
var spinned = false;
}
Symbol 456 MovieClip [__Packages.Cannon] Frame 0
class Cannon extends MovieClip
{
var bullet, _parent, _rotation, _x, _y, gotoAndStop, onEnterFrame;
function Cannon () {
super();
bullet = _parent.zebra;
_rotation = 45;
}
function fire() {
var _local2 = (Math.PI * _rotation) / 180;
bullet.fire(_x - (35 * Math.cos(_local2)), _y - (35 * Math.sin(_local2)), _rotation, 40);
gotoAndStop(2);
_parent.stand_1.gotoAndPlay(2);
_parent.stand_2.gotoAndPlay(2);
onEnterFrame = null;
}
function aimLeft() {
_rotation = _rotation - 3;
if (_rotation < 10) {
_rotation = _rotation - 1;
onEnterFrame = aimRight;
}
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(39))) && (!bullet.fired)) && (button_off)) {
fire();
}
if (((!Key.isDown(38)) && (!Key.isDown(37))) && (!Key.isDown(39))) {
button_off = true;
} else {
button_off = false;
}
}
function aimRight() {
_rotation = _rotation + 3;
if (_rotation > 80) {
_rotation = _rotation - 1;
onEnterFrame = aimLeft;
}
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(39))) && (!bullet.fired)) && (button_off)) {
fire();
}
if (((!Key.isDown(38)) && (!Key.isDown(37))) && (!Key.isDown(39))) {
button_off = true;
} else {
button_off = false;
}
}
var button_off = false;
}
Symbol 457 MovieClip [__Packages.TightRope] Frame 0
class TightRope extends MovieClip
{
var onEnterFrame, targ, _parent, _x, _width, clear, lineStyle, moveTo, lineTo, _y, curveTo;
function TightRope () {
super();
onEnterFrame = still;
}
function still() {
center_y_normal = 20;
if ((((center_y_speed < 0.2) && (center_y_speed > -0.2)) && (center_y < 0.2)) && (center_y > -0.2)) {
} else {
wobble();
}
if (targ.hitTest(_parent.zebra._x + _parent._x, (_parent.zebra._y + _parent._y) + 40, true)) {
_parent.zebra.tight_rope = this;
_parent.zebra.onEnterFrame = _parent.zebra.walk;
onEnterFrame = walk;
center_y_speed = _parent.zebra.speed_y / 2;
}
}
function walk() {
var _local2 = _parent.zebra._x - _x;
var _local3 = 1 - (Math.sqrt(_local2 * _local2) / (_width / 2));
center_y = center_y - (center_y_normal - (30 * _local3));
center_y_normal = 30 * _local3;
center_y_speed = center_y_speed - (center_y / 10);
center_y_speed = center_y_speed * 0.94;
center_y = center_y + center_y_speed;
clear();
lineStyle(4, 16777215);
moveTo(8 - (_width / 2), 0);
if (_parent.zebra._xscale > 0) {
lineTo((_parent.zebra._x - 12) - _x, center_y + center_y_normal);
lineTo((_parent.zebra._x - _x) + 12, center_y + center_y_normal);
} else {
lineTo((_parent.zebra._x - _x) - 12, center_y + center_y_normal);
lineTo((_parent.zebra._x + 12) - _x, center_y + center_y_normal);
}
lineTo(-8 + (_width / 2), 0);
_parent.zebra._y = ((_y + center_y) + center_y_normal) - 23;
}
function wobble() {
center_y_speed = center_y_speed - (center_y / 10);
center_y_speed = center_y_speed * 0.94;
center_y = center_y + center_y_speed;
clear();
lineStyle(4, 16777215);
moveTo(8 - (_width / 2), 0);
curveTo(0, center_y + center_y_normal, -8 + (_width / 2), 0);
}
var center_y = -40;
var center_y_speed = 0;
var center_y_normal = 20;
}
Symbol 458 MovieClip [__Packages.CannonZebra] Frame 0
class CannonZebra extends MovieClip
{
var onEnterFrame, _rotation, _y, gotoAndStop, _x, _parent;
function CannonZebra () {
super();
onEnterFrame = fly;
}
function fly() {
if (fired) {
gravity();
moveAbout();
follow();
_rotation = (180 * Math.atan2(speed_x, -speed_y)) / Math.PI;
if (_y > 150) {
_y = 150;
_rotation = 0;
if (!burned) {
gotoAndStop(2);
} else {
gotoAndStop(4);
}
speed_y = 0;
onEnterFrame = slide;
_root.score_board.ended = true;
}
}
}
function slide() {
speed_x = speed_x * 0.9;
moveAbout();
follow();
}
function moveAbout() {
_x = _x + speed_x;
_y = _y + speed_y;
}
function gravity() {
speed_y = speed_y + 1;
}
function fire(p_x, p_y, p_angle, p_speed) {
_x = p_x;
_y = p_y;
_rotation = p_angle;
var _local2 = (Math.PI * p_angle) / 180;
speed_x = p_speed * (-Math.sin(-_local2));
speed_y = p_speed * (-Math.cos(-_local2));
fired = true;
}
function follow() {
if ((_parent._x + _x) > 458.333333333333) {
_parent._x = _parent._x - (((_x + (_parent._x / 0.6)) - 458.333333333333) / 5);
if (((_parent._x / 0.6) + _parent.bg._x) < -1010) {
_parent.bg._x = _parent.bg._x + 1010;
}
}
}
var speed_x = 0;
var speed_y = 0;
var fired = false;
var burned = false;
}
Symbol 459 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 72 MovieClip Frame 1
stop();
Instance of Symbol 72 MovieClip "b2" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay("ball");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 72 MovieClip "b1" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay("cannon");
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 252 MovieClip Frame 11
this.removeMovieClip();
stop();
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
f = this.flame.duplicateMovieClip("f" + count, count + 10);
f._rotation = (Math.random() * 10) - 5;
f2 = this._parent.l.flame.duplicateMovieClip("f" + count, count + 10);
f2._rotation = f._rotation * 0.7;
count++;
}
Symbol 262 MovieClip [Tight Rope 1] Frame 1
#initclip 18
Object.registerClass("Tight Rope 1", TightRope);
#endinitclip
Symbol 266 MovieClip [Trapeze] Frame 1
#initclip 14
Object.registerClass("Trapeze", Trapeze);
#endinitclip
Symbol 269 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 277 MovieClip [Animals Clip] Frame 1
#initclip 15
Object.registerClass("Animals Clip", Animal);
#endinitclip
stop();
Symbol 323 MovieClip Frame 6
_parent.spinning = false;
_parent.gotoAndStop(3);
Symbol 372 MovieClip [Circus Zebra] Frame 1
#initclip 16
Object.registerClass("Circus Zebra", CircusZebra);
#endinitclip
stop();
Symbol 372 MovieClip [Circus Zebra] Frame 3
stop();
Symbol 372 MovieClip [Circus Zebra] Frame 8
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 377 MovieClip [Cannon Barrel] Frame 1
#initclip 17
Object.registerClass("Cannon Barrel", Cannon);
#endinitclip
stop();
Symbol 380 MovieClip Frame 1
stop();
Instance of Symbol 269 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
passed = false;
}
onClipEvent (enterFrame) {
if ((_x + _parent._x) < 600) {
this.gotoAndStop(2);
}
if ((_parent.zebra._x > _x) && (!passed)) {
_root.dr.gotoAndStop(3);
_root.score_board.ended = true;
dy = _y - _parent.zebra._y;
dy = Math.sqrt(dy * dy);
if ((dy > 80) && (dy < 110)) {
_parent.zebra.gotoAndStop(3);
_parent.zebra.burned = true;
} else if (dy < 80) {
_root.score_board.score = _root.score_board.score + (10 * (100 - Math.round(Math.sqrt(dy * dy))));
}
passed = true;
}
}
Instance of Symbol 377 MovieClip [Cannon Barrel] "cannon" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
loaded = false;
}
onClipEvent (enterFrame) {
if (loaded) {
if ((_x + _parent._x) > 101) {
_parent._x = _parent._x - (((_x + _parent._x) - 100) / 5);
if ((_parent._x + _parent.bg._x) < -1010) {
_parent.bg._x = _parent.bg._x + 1010;
} else if ((_parent._x + _parent.bg._x) > 0) {
_parent.bg._x = _parent.bg._x - 1010;
}
}
} else if (((_parent.zebra._x > (_x - 40)) && (!loaded)) && (_parent.zebra._y < 400)) {
_root.dr.gotoAndStop(2);
this.onEnterFrame = aimLeft;
_parent.zebra.gotoAndStop(8);
_parent.zebra.onEnterFrame = null;
_parent.zebra._y = -200;
loaded = true;
}
}
Instance of Symbol 380 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_x + _parent._x) < 600) {
this.gotoAndStop(2);
}
}
Symbol 386 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 3
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.timer.start_time = getTimer();
_root.timer.started = true;
_root.level.zebra.onEnterFrame = _root.level.zebra.ballance;
_parent.gotoAndStop(3);
};
}
Instance of Symbol 401 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(2);
};
}
Instance of Symbol 403 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("menu");
};
}
Instance of Symbol 406 MovieClip in Symbol 407 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(1);
};
}
Symbol 410 MovieClip [Cannon Zebra] Frame 1
#initclip 19
Object.registerClass("Cannon Zebra", CannonZebra);
#endinitclip
stop();
Instance of Symbol 379 MovieClip "lf" in Symbol 411 MovieClip Frame 1
onClipEvent (load) {
function rand() {
_x = (((Math.random() * 300) + 200) / 0.6);
_y = ((((Math.random() * 150) + 110) - 284.1) / 0.6);
_parent.lb._x = _x;
_parent.lb._y = _y;
}
passed = false;
_root.final_score = 0;
}
onClipEvent (enterFrame) {
if ((_parent.zebra._x > _x) && (!passed)) {
_root.dr.gotoAndStop(3);
dy = _y - _parent.zebra._y;
dy = Math.sqrt(dy * dy);
if ((dy > 80) && (dy < 110)) {
_parent.zebra.gotoAndStop(3);
_parent.zebra.burned = true;
} else if (dy < 80) {
_root.final_score = _root.final_score + (100 - Math.round(Math.sqrt(dy * dy)));
}
passed = true;
}
}
Symbol 413 MovieClip Frame 1
stop();
Instance of Symbol 399 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.level.lf.rand();
_root.level.cannon.onEnterFrame = _root.level.cannon.aimLeft;
_root.dr.gotoAndStop(2);
_parent.gotoAndStop(3);
};
}
Instance of Symbol 401 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(2);
};
}
Instance of Symbol 403 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("menu");
};
}
Instance of Symbol 406 MovieClip in Symbol 413 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(1);
};
}
Symbol 419 MovieClip Frame 1
stop();
Instance of Symbol 72 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
send_score = new LoadVars();
send_score.x = ab20.encodeNum(Number(_root.final_score) * 100);
if (_root.game == "main") {
send_score.c = 765;
send_score.v = "DPWSGQ";
} else if (_root.game == "ball") {
send_score.c = 767;
send_score.v = "LUUEWO";
} else if (_root.game == "cannon") {
send_score.c = 766;
send_score.v = "BGVTBN";
}
send_score.onLoad = function (success) {
if (success) {
_root.scoretable.__top10_send__.sendAndLoad(_root.scoretable.__top10_url_1__ + _root.scoretable.__top10_url_2__, _root.scoretable.__top10_receive__, "POST");
} else {
_root.scoretable.gotoAndStop(3);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.scoretable.gotoAndStop(1);
send_score.z = _parent.name_in.text;
_parent.name_var = _parent.name_in.text;
send_score.sendAndLoad("http://armorbot.com/s_b", send_score, "POST");
_parent.gotoAndStop(2);
};
}
Symbol 419 MovieClip Frame 2
name_text.text = name_var;
Symbol 422 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();