Frame 1
function starMove() {
this.xspd = this.xspd - 0.6;
this.yspd = this.yspd - 0.6;
this.starscale = this.starscale * 1.05;
this._x = this._x + this.xspd;
this._y = this._y + this.yspd;
this._xscale = this.starscale;
this._yscale = this.starscale;
((this._y < -50) ? (this.removeMovieClip()) : null);
}
function burstt(a, d, c) {
k = 0;
while (k < 15) {
curStar = attachMovie("bstar", "cstar" + i, i);
i++;
((i > 1000) ? ((i = 0)) : null);
curStar.gotoAndStop(random(c) + 1);
if (c != 10) {
} else {
(curStar.gotoAndStop(random(2) + 4));// not popped
}
curStar._xscale = 50 + random(101);
curStar._yscale = curStar._xscale;
curStar._x = a;
curStar._y = d;
curStar.xspd = (Math.random() * 10) - 5;
curStar.yspd = (Math.random() * 10) - 3;
curStar.grav = 0.5;
curStar.onEnterFrame = Move;
k++;
}
}
function Move() {
if (_currentframe == 6) {
this.removeMovieClip();
}
this._x = this._x + this.xspd;
this._y = this._y - this.yspd;
this.yspd = this.yspd - this.grav;
if (this._y > 450) {
this.removeMovieClip;
}
}
i = 0;
burstCounter = 0;
onMouseDown = function () {
if ((_currentframe != 6) && (burstCounter <= 0)) {
burstt(_root._xmouse, _root._ymouse, random(6));
burstCounter = 15;
}
if (_root.soundMC.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.soundMC.play();
}
};
onEnterFrame = function () {
burstCounter--;
if (_currentframe == 1) {
curstar = attachMovie("star", "star" + i, i);
i++;
((i > 1000) ? ((i = 0)) : null);
curstar._x = bee._x + 5;
curstar._y = bee._y + 5;
curstar.xspd = -1 - (Math.random() * 3);
curstar.yspd = -1.2 - (Math.random() * 3);
curstar.starscale = 50;
curstar.onEnterFrame = starMove;
}
};
function itemHandler1(obj, item) {
getURL ("http://www.shirtturtle.deviantart.com", "_blank");
}
function itemHandler2(obj, item) {
getURL ("http://www.armorgames.com", "_blank");
}
function itemHandler3(obj, item) {
getURL ("http://cdbaby.com/cd/danpaladin", "_blank");
}
function itemHandler4(obj, item) {
getURL ("http://www.coalyizsexy.com", "_blank");
}
function itemHandler5(obj, item) {
_quality = "high";
}
function itemHandler6(obj, item) {
_quality = "medium";
}
function itemHandler7(obj, item) {
_quality = "low";
}
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Shirty's Site", itemHandler1);
bbb_cmi = new ContextMenuItem("Armor Games", itemHandler2);
ccc_cmi = new ContextMenuItem("Buy Dan Paladins CD now!", itemHandler3);
ddd_cmi = new ContextMenuItem("Scripted by the talented Coaly", itemHandler4);
eee_cmi = new ContextMenuItem("High Quality", itemHandler5);
fff_cmi = new ContextMenuItem("Mid Quality", itemHandler6);
ggg_cmi = new ContextMenuItem("Low Quality", itemHandler7);
ccc_cmi.separatorBefore = true;
eee_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi, fff_cmi, ggg_cmi);
_root.menu = root_cm;
Instance of Symbol 73 MovieClip "bee" in Frame 1
onClipEvent (load) {
this.swapDepths(5000);
xspd = 1;
yspd = 1;
}
onClipEvent (enterFrame) {
if (_root._currentframe != 1) {
yspd = yspd * 1.2;
xspd = xspd * 1.2;
this._x = this._x + xspd;
this._y = this._y + yspd;
if (this._y > 500) {
this.removeMovieClip();
}
}
}
Instance of Symbol 85 MovieClip "wipe" in Frame 1
onClipEvent (load) {
this._x = 1600;
transition = false;
frame = _root._currentframe;
nextframe = 4;
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
frame = _root._currentframe;
if (transition == true) {
this._x = this._x - Math.max(Math.abs(this._x - 350) / 5, 20);
if (this._x <= 350) {
_root.gotoAndStop(nextframe);
}
if (this._x <= -890) {
transition = false;
this._x = 1600;
}
}
}
Frame 2
stop();
Instance of Symbol 93 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
stop();
wipe.transition = true;
Frame 4
stop();
Frame 6
function createSmall() {
cursmall = attachMovie("small", "enemy" + n, n);
n++;
((n > 50) ? ((n = 0)) : null);
cursmall._x = 800;
cursmall._y = 25 + random(301);
cursmall.xspd = (beeSpd + 8) + random(4);
cursmall.yspd = (Math.random() * 6) - 3;
cursmall.grav = 0;
cursmall.onEnterFrame = beeMove;
}
function createMedium() {
curmedium = attachMovie("medium", "enemy" + n, n);
n++;
((n > 50) ? ((n = 0)) : null);
curmedium._x = 800;
curmedium._y = 25 + random(301);
curmedium.xspd = (beeSpd + 6) + random(3);
curmedium.yspd = (Math.random() * 4) - 2;
curmedium.grav = 0;
curmedium.onEnterFrame = beeMove;
}
function createBig() {
curbig = attachMovie("big", "enemy" + n, n);
n++;
((n > 50) ? ((n = 0)) : null);
curbig._x = 900;
curbig._y = random(301) + 25;
curbig.xspd = (beeSpd + 4) + random(2);
curbig.yspd = (Math.random() * 2) - 1;
curbig.grav = 0;
curbig.onEnterFrame = beeMove;
}
function createShooter() {
curshooter = attachMovie("shooter", "enemy" + n, n);
n++;
((n > 50) ? ((n = 0)) : null);
curshooter._x = 800;
curshooter._y = random(275) - 100;
curshooter.xspd = 10;
curshooter.yspd = (Math.random() * -6) - 3;
curshooter.shooter = true;
curshooter.onEnterFrame = beeMove;
}
function createStinger(a, b) {
curStinger = attachMovie("stinger", "stinger" + s, s);
s++;
((s > 600) ? ((s = 500)) : null);
curStinger._x = a;
curStinger._y = b;
curStinger.xspd = 15;
curStinger.onEnterFrame = beeMove;
}
function createHealth() {
curHealth = attachMovie("health", "health" + n, n);
n++;
((n > 50) ? ((n = 0)) : null);
curHealth._x = 750;
curHealth._y = (Math.random() * 350) + 25;
curHealth.xspd = (Math.random() * 5) + 3;
curHealth.health = true;
curHealth.onEnterFrame = beeMove;
}
function createCoin() {
curCoin = attachMovie("coin", "coin" + c, c);
c++;
((c > 200) ? ((c = 100)) : null);
curCoin._x = 750;
curCoin._y = (Math.random() * 350) + 25;
curCoin.coin = true;
curCoin.xspd = 7 + (Math.random() * 6);
curCoin.onEnterFrame = beeMove;
}
function beeMove() {
if (_currentframe != 6) {
this.removeMovieClip();
}
if ((this._x < -300) || (this._y > 600)) {
this.removeMovieClip();
}
this._x = this._x - this.xspd;
this._y = this._y - this.yspd;
this.yspd = this.yspd - this.grav;
if (this.coin == true) {
if (this.hitTest(_root.bee) && (this._currentframe < 12)) {
this.gotoAndPlay(12);
}
if (this._currentframe == 21) {
score = score + 200;
burst(this._x, this._y, 3);
this.removeMovieClip();
}
}
if (this.shooter == true) {
this.xspd = Math.ceil((this._x - 600) / 5);
this.yspd = -this.xspd;
if (this._currentframe == 91) {
this.removeMovieClip();
}
if (this._x <= 550) {
this.play();
}
if (this._currentframe == 13) {
createStinger(this._x, this._y);
}
}
if (this.health == true) {
if (this.hitTest(_root.bee) && (this._currentframe == 1)) {
this.play();
}
if (this._currentframe == 17) {
if (_root.bee.health < 11) {
_root.bee.health++;
} else {
score = score + 200;
}
burst(this._x, this._y, 4);
this.removeMovieClip();
}
}
}
function burst(a, d, c) {
i = 0;
while (i < 15) {
curStar = attachMovie("bstar", "star" + b, b);
b++;
((b > 400) ? ((b = 300)) : null);
curStar.gotoAndStop(random(c) + 1);
if (c != 10) {
} else {
(curStar.gotoAndStop(random(2) + 4));// not popped
}
curStar._xscale = 50 + random(101);
curStar._yscale = curStar._xscale;
curStar._x = a;
curStar._y = d;
curStar.xspd = (Math.random() * 10) - 5;
curStar.yspd = (Math.random() * 10) - 3;
curStar.grav = 0.5;
curStar.onEnterFrame = beeMove;
i++;
}
}
n = 0;
b = 300;
c = 100;
s = 500;
xspd = 0;
yspd = 0;
grav = 0;
score = 0;
realScore = 0;
counter = 5;
cCounter = 150;
hCounter = 400;
shCounter = 250;
sCounter = 100;
mCounter = 200;
bCounter = 300;
shooter = false;
heatlh = false;
beeSpd = 0;
onEnterFrame = function () {
burstCounter--;
if (_currentframe == 6) {
((n > 50) ? ((n = 0)) : null);
if (realScore < score) {
realScore = realScore + (1 + Math.floor((score - realScore) / 10));
}
if ((counter <= 1) && (_root.bee.health > 0)) {
score = score + 5;
counter = 5;
}
if (sCounter <= 0) {
createSmall();
sCounter = Math.max((175 + random(40)) - Math.abs(score / 15), 20);
}
if (mCounter <= 0) {
createMedium();
mCounter = Math.max((200 + random(55)) - Math.abs(score / 17.5), 25);
}
if (bCounter <= 0) {
createBig();
bCounter = Math.max((225 + random(60)) - Math.abs(score / 20), 30);
}
if (shCounter <= 0) {
createShooter();
shCounter = Math.max((215 + random(55)) - Math.abs(score / 19), 28);
}
if (hCounter <= 0) {
createHealth();
hCounter = 350 + random(100);
}
if (cCounter <= 0) {
createCoin();
cCounter = 125 + random(50);
}
if (beeSpd < 20) {
beeSpd = Math.floor(realScore / 575);
}
counter--;
cCounter--;
hCounter--;
shCounter--;
sCounter--;
mCounter--;
bCounter--;
_root.bg.gotoAndStop(Math.ceil(realScore / 10) - (Math.floor(realScore / 5000) * 500));
}
};
Instance of Symbol 156 MovieClip "bee" in Frame 6
onClipEvent (load) {
yspd = -40;
xspd = 30;
this.gotoAndStop(1);
hover = 0;
n = 0;
health = 11;
}
onClipEvent (enterFrame) {
function hitCheck() {
i = 0;
while (i < 51) {
if (_root["enemy" + i].hitTest(this._x + 15, this._y - 12, true) || (_root["enemy" + i].hitTest(this._x + 15, this._y + 12, true))) {
health--;
if (health <= 1) {
this.gotoAndStop(3);
}
this.gotoAndStop(2);
_root.healthBar.gotoAndStop(health);
if (this._x < _root["enemy" + i]._x) {
xspd = Math.max(-25, -Math.round(_root["enemy" + i]._x - this._x));
}
if (this._x > _root["enemy" + i]._x) {
xspd = Math.min(25, -Math.round(_root["enemy" + i]._x - this._x));
}
if (this._y < _root["enemy" + i]._y) {
yspd = Math.max(-25, -Math.round(_root["enemy" + i]._y - this._y));
}
if (this._y > _root["enemy" + i]._y) {
yspd = Math.min(25, -Math.round(_root["enemy" + i]._y - this._y));
}
}
i++;
}
s = 0;
while (s < 100) {
if (_root["stinger" + (500 + s)].hitTest(this.hitSquare)) {
health--;
if (health <= 1) {
this.gotoAndStop(3);
}
this.gotoAndStop(2);
this.xspd = this.xspd - 15;
this.yspd = this.yspd - 10;
_root.healthBar.gotoAndStop(health);
_root.burst(_root["stinger" + (500 + s)]._x, _root["stinger" + (500 + s)]._y, 10);
_root["stinger" + (500 + s)].removeMovieClip();
}
s++;
}
}
function moveCheck() {
if (Key.isDown(37) || (Key.isDown(65))) {
this.xspd = this.xspd - 3;
}
if (Key.isDown(39) || (Key.isDown(68))) {
this.xspd = this.xspd + 3;
}
if (Math.abs(xspd) > 13) {
xspd = xspd - ((3 * Math.abs(xspd)) / xspd);
}
if ((this._x > 700) || (this._x < 0)) {
this._x = this._x - xspd;
xspd = Math.round(xspd * -0.5);
}
if (xspd != 0) {
xspd = xspd - (Math.abs(xspd) / xspd);
}
if (this._x > 700) {
this._x = 699;
}
if (this._x < 0) {
this._x = 1;
}
this._x = this._x + xspd;
if (Key.isDown(38) || (Key.isDown(87))) {
this.yspd = this.yspd - 3;
}
if (Key.isDown(40) || (Key.isDown(83))) {
this.yspd = this.yspd + 3;
}
if (Math.abs(yspd) > 13) {
yspd = yspd - ((3 * Math.abs(yspd)) / yspd);
}
if ((this._y > 400) || (this._y < 0)) {
this._y = this._y - yspd;
yspd = Math.round(yspd * -0.5);
}
if (yspd != 0) {
yspd = yspd - (Math.abs(yspd) / yspd);
}
if (this._y > 400) {
this._y = 399;
}
if (this._y < 0) {
this._y = 1;
}
this._y = this._y + yspd;
this._rotation = yspd;
}
if (health > 1) {
moveCheck();
if (this._currentframe == 1) {
hitCheck();
}
} else {
this.gotoAndStop(3);
}
if (this.dying._currentframe == 41) {
_root.wipe.transition = true;
_root.wipe.nextframe = 7;
}
_root.healthBar.gotoAndStop(health);
}
Instance of Symbol 180 MovieClip "submitted" in Frame 7
onClipEvent (load) {
this._x = 750;
}
onClipEvent (enterFrame) {
if (this._x != 750) {
_root.submit._x = 750;
} else {
_root.submit._x = 405;
}
}
Symbol 5 MovieClip [health] Frame 1
stop();
Symbol 5 MovieClip [health] Frame 17
stop();
Symbol 38 MovieClip [shooter] Frame 91
stop();
Symbol 67 MovieClip [coin] Frame 11
gotoAndPlay (1);
Symbol 79 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 82 Button
on (release) {
_root.play();
}
Symbol 83 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 83 MovieClip Frame 2
gotoAndPlay (1);
Symbol 93 MovieClip Frame 150
stop();
_root.play();
Symbol 97 Button
on (release) {
_root.wipe.transition = true;
_root.wipe.nextframe = 6;
}
Symbol 99 Button
on (release) {
_root.wipe.transition = true;
_root.wipe.nextframe = 5;
}
Symbol 101 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 105 Button
on (release) {
getURL ("http://cdbaby.com/cd/danpaladin", "blank");
}
Symbol 110 Button
on (release) {
getURL ("http://armorbot.com/mytable/?id=774", "blank");
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 123 Button
on (release) {
_root.wipe.transition = true;
_root.wipe.nextframe = 4;
}
Symbol 153 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 154 MovieClip Frame 10
stop();
Symbol 155 MovieClip Frame 41
stop();
Symbol 168 MovieClip Frame 11
stop();
Symbol 178 Button
on (release) {
if (this._currentframe != 5) {
ab20_09 = new LoadVars();
ab20_09.z = _root.beename;
ab20_09.x = realScore;
ab20_09.c = 774;
ab20_09.v = "OHFXDJ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.submitted._x = 367;
}
}