Frame 1
Stage.showMenu = false;
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);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
startgame = false;
function moveworld() {
ws = new Object();
ws.x = w.w._x;
ws.y = w.w._y;
w.localToGlobal(ws);
desx = Stage.width / 2;
desy = Stage.height / 2;
dist = desx - ws.x;
w._x = w._x + (dist / 5);
dist = desy - ws.y;
w._y = w._y + (dist / 5);
if (w._x > 0) {
w._x = 0;
} else if (w._x < -450) {
w._x = -450;
}
if (w._y > 0) {
w._y = 0;
} else if (w._y < -300) {
w._y = -300;
}
}
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__("971509fe", this, 10301, true);
Instance of Symbol 76 MovieClip in Frame 4
onClipEvent (enterFrame) {
_parent.moveworld();
}
Instance of Symbol 145 MovieClip in Frame 4
on (release) {
if (this._currentframe == 1) {
_parent.w.my_sound.setVolume(0);
} else {
_parent.w.my_sound.setVolume(20);
}
play();
}
Instance of Symbol 149 MovieClip in Frame 4
on (release) {
if (this._currentframe == 1) {
_quality = "LOW";
} else if (this._currentframe == 2) {
_quality = "MEDIUM";
} else {
_quality = "HIGH";
}
play();
}
Frame 5
gotoAndStop (4);
Symbol 64 Button
on (release) {
_root.play();
}
Symbol 65 MovieClip Frame 143
_root.play();
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 3
gotoAndPlay (1);
Symbol 101 MovieClip Frame 4
spd = 0;
rot = -15 + (Math.random() * 30);
Symbol 101 MovieClip Frame 5
spd = spd + 1;
this._y = this._y + spd;
this._rotation = this._rotation + rot;
Symbol 101 MovieClip Frame 6
if (this._y > 900) {
this.removeMovieClip();
} else {
gotoAndPlay (5);
}
Symbol 101 MovieClip Frame 14
this.removeMovieClip();
Symbol 104 MovieClip Frame 1
function death() {
if (wdspd == undefined) {
wdspd = 0;
yspd = 0;
w.gotoAndStop(3);
_parent.hb.g.gotoAndStop(18);
}
yspd = yspd + 1;
w._y = w._y + yspd;
dot1._x = w._x;
dot1._y = w._y;
moveworld();
w.ab._rotation = yspd * 4;
w.l1._rotation = yspd * 4;
w.l2._rotation = yspd * 4;
if (w._y > 810) {
w._y = 810;
yspd = yspd / 5;
w.ab._rotation = 90;
w.l1._rotation = 90;
w.l2._rotation = 90;
if (oncedeadtitle == undefined) {
oncedeadtitle = true;
_parent.titlemc.gotoAndPlay(49);
my_sound.stop();
my_sound2.start();
}
}
w.l3._rotation = yspd * 4;
w.l4._rotation = yspd * 4;
w.h._rotation = yspd * 2;
w.a1._rotation = yspd * 3;
w.a2._rotation = yspd * 3;
}
function xmoveworld() {
this._y = this._y - yspd;
this._x = this._x - xspd;
if (this._y > 0) {
this._y = 0;
} else if (this._y < (-(this._height - Stage.height))) {
this._y = -(this._height - Stage.height);
}
}
function damagewasp() {
if (barinc == undefined) {
wdmg = 0;
barsw = _parent.hb.hbb._y;
barinc = _parent.hb.hbb._y / 500;
}
_parent.hb.hbb._y = barsw - (wdmg * barinc);
if (_parent.hb.hbb._y <= 0) {
dead = true;
_parent.hb.hbb._y = 0;
}
}
function beesattack() {
if (elist.length != 0) {
lc = 0;
do {
we = elist[lc];
we = eval (we);
vec1 = we;
vec2 = w;
var dx = (vec1._x - vec2._x);
var dy = (vec1._y - vec2._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 25) {
wdmg = wdmg + 1;
_parent.hb.g.gotoAndPlay(3);
}
lc = lc + 1;
} while (lc < elist.length);
}
}
function attackbees() {
ws = new Object();
ws.x = w.ab.pt._x;
ws.y = w.ab.pt._y;
w.ab.localToGlobal(ws);
eac = 0;
do {
we = elist[eac];
we = eval (we);
test = we.hitTest(ws.x, ws.y, true);
if (test == true) {
we.gotoAndPlay(4);
score = score + 1;
_parent.scorebox.text = score;
elist.splice(eac, 1);
espdctr = espdctr + 0.1;
} else {
eac = eac + 1;
}
} while (eac < elist.length);
}
function rotateme(mc) {
spd = mc.spd;
inertia = mc.inertia;
x = mc._x - w._x;
y = mc._y - w._y;
radians = Math.atan2(y, x);
divider = 57.2957795130823;
angle = radians * divider;
if ((mc._rotation > 0) and (angle < 0)) {
dir = mc._rotation - angle;
if (dir >= 180) {
ang = 360 + angle;
inc = ang - mc._rotation;
inc = inc / spd;
mc._rotation = mc._rotation + inc;
} else {
inc = mc._rotation - angle;
inc = inc / spd;
inc = -inc;
}
} else if ((mc._rotation < 0) and (angle > 0)) {
dir = angle - mc._rotation;
if (dir >= 180) {
angle = -360 + angle;
inc = angle - mc._rotation;
inc = inc / spd;
mc._rotation = mc._rotation + inc;
} else {
inc = angle - mc._rotation;
inc = inc / spd;
mc._rotation = mc._rotation + inc;
}
} else {
inc = mc._rotation - angle;
inc = inc / spd;
inc = -inc;
}
if (mc.oldinc == undefined) {
mc.oldinc = 0;
}
incd = mc.oldinc + ((inc - mc.oldinc) / inertia);
mc._rotation = mc._rotation + incd;
mc.oldinc = incd;
}
function moveenemy() {
if (elist.length != 0) {
lc = 0;
do {
we = elist[lc];
we = eval (we);
rotateme(we);
eangle = (we._rotation * Math.PI) / 180;
exm = Math.cos(eangle) * we.mspd;
eym = Math.sin(eangle) * we.mspd;
we.exspd = we.exspd + exm;
we.eyspd = we.eyspd + eym;
eangle = (eangle * 180) / Math.PI;
we.exspd = -we.exspd;
we.eyspd = -we.eyspd;
we._x = we._x + we.exspd;
we._y = we._y + we.eyspd;
we.exspd = we.exspd - (we.exspd / 5);
we.eyspd = we.eyspd - (we.eyspd / 5);
lc = lc + 1;
} while (lc < elist.length);
}
}
function makeenemy() {
if (ec == undefined) {
ec = 0;
elist = [];
}
if (elist.length < 40) {
ec = ec + 1;
}
if (ec == 10) {
e.e.duplicateMovieClip("e" + e.getNextHighestDepth(), e.getNextHighestDepth());
we = "e.e" + (e.getNextHighestDepth() - 1);
elist.push(we);
we = eval (we);
we.exspd = 0;
we.eyspd = 0;
we.spd = 6 + (Math.random() * 8);
we.inertia = 2 + (Math.random() * 6);
we.mspd = 6 + (Math.random() * espdctr);
we._x = 715;
we._y = 184;
we._rotation = we._rotation - 90;
ec = 0;
}
}
function game() {
mspd = 5;
if (xspd == undefined) {
xspd = 0;
yspd = 0;
m = 0;
m2 = 1;
m3 = 0;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspd = xspd + 2;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspd = xspd - 2;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspd = yspd - 2;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspd = yspd + 2;
}
m = m + 1;
mam = 8;
if (m3 == 0) {
m2 = m2 + 1;
if (m2 == (mam / 2)) {
m3 = 1;
}
} else {
m2 = m2 - 1;
if (m2 < 1) {
m3 = 0;
}
}
if (m < mam) {
w._x = w._x + (0.3 * m2);
} else if (m < (mam * 2)) {
w._x = w._x - (0.3 * m2);
} else {
m = 0;
}
w._x = w._x + xspd;
w._y = w._y + yspd;
if (w._x < 0) {
w._x = 0;
} else if (w._x > 950) {
w._x = 950;
}
if (w._y < 10) {
w._y = 10;
} else if (w._y > 810) {
w._y = 810;
}
moveworld();
xspd = xspd - (xspd / 10);
yspd = yspd - (yspd / 10);
dot1._x = w._x;
dot1._y = w._y;
w.ab._rotation = abangle;
w.l1._rotation = xspd * 4;
w.l2._rotation = xspd * 4;
w.l3._rotation = xspd * 4;
w.l4._rotation = xspd * 4;
w.h._rotation = xspd * 2;
w.a1._rotation = xspd * 3;
w.a2._rotation = xspd * 3;
}
function forces() {
i = 0;
do {
if (dotlist == undefined) {
dotlist = ["dot1", "dot2"];
}
which = dotlist[i];
i = i + 1;
whichdot = eval (which);
if (this[which + "dragging"] != true) {
whichdot._y = whichdot._y + 1;
}
this[which + "xspeed"] = whichdot._x - this[which + "oldx"];
this[which + "yspeed"] = whichdot._y - this[which + "oldy"];
this[which + "xspeed"] = (this[which + "xspeed"] * 19) / 20;
this[which + "oldx"] = whichdot._x;
this[which + "oldy"] = whichdot._y;
if (this[which + "dragging"] != true) {
whichdot._x = whichdot._x + this[which + "xspeed"];
whichdot._y = whichdot._y + this[which + "yspeed"];
}
if (XXXwhichdot._y > (Stage.height - 100)) {
whichdot._y = Stage.height - 100;
this[which + "yspeed"] = (-this[which + "yspeed"]) / 2;
whichdot._y = whichdot._y + this[which + "yspeed"];
}
if (XXXwhichdot._x > (Stage.width - 100)) {
whichdot._x = Stage.width - 100;
this[which + "xspeed"] = (-this[which + "xspeed"]) / 2;
whichdot._x = whichdot._x + this[which + "xspeed"];
} else if (XXXwhichdot._x < 0) {
whichdot._x = 0;
this[which + "xspeed"] = (-this[which + "xspeed"]) / 2;
whichdot._x = whichdot._x + this[which + "xspeed"];
}
} while (i < dotlist.length);
}
function physics5() {
i = 0;
do {
pairs = ["dot2*dot1"];
whichpairs = pairs[i];
i = i + 1;
splits = whichpairs.split("*");
vec1 = splits[0];
vec2 = splits[1];
vec1 = eval (vec1);
vec2 = eval (vec2);
var dx = (vec1._x - vec2._x);
var dy = (vec1._y - vec2._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
var angle;
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
if (Key.isDown(32)) {
angle = abangle;
} else {
angle = ((angle * 180) / Math.PI) - 90;
}
if (i == 1) {
abangle = angle;
}
if (angle < 0) {
angle = Math.sqrt(angle * angle);
angle = Math.round(angle);
bigger = Math.max(vec1._y, vec2._y);
smaller = Math.min(vec1._y, vec2._y);
ydistance = bigger - smaller;
newy = 50 * Math.cos(angle * (Math.PI/180));
newy = Math.round(newy);
vec1._y = vec2._y + newy;
newx = 50 * Math.sin(angle * (Math.PI/180));
newx = Math.round(newx);
vec1._x = vec2._x + newx;
} else {
angle = Math.sqrt(angle * angle);
angle = Math.round(angle);
bigger = Math.max(vec1._y, vec2._y);
smaller = Math.min(vec1._y, vec2._y);
ydistance = bigger - smaller;
newy = 50 * Math.cos(angle * (Math.PI/180));
vec1._y = vec2._y + newy;
newx = 50 * Math.sin(angle * (Math.PI/180));
vec1._x = vec2._x - newx;
}
ysize = 3;
xsize = 4;
} while (i < pairs.length);
}
espdctr = 6;
score = 0;
wdmg = 0;
exspd = 0;
eyspd = 0;
exm = 0;
function callback1() {
my_sound.start(0, 20);
}
var my_sound = new Sound();
my_sound.attachSound("bgmusic");
my_sound.start();
my_sound.setVolume(20);
my_sound.onSoundComplete = callback1;
var my_sound2 = new Sound();
my_sound2.attachSound("punch");
my_sound2.setVolume(20);
Instance of Symbol 69 MovieClip "dot1" in Symbol 104 MovieClip Frame 1
on (press) {
this.startDrag(true);
_parent.dot1dragging = true;
}
on (release) {
this.stopDrag();
_parent.dot1dragging = false;
}
on (releaseOutside) {
this.stopDrag();
_parent.dot1dragging = false;
}
Instance of Symbol 74 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.startgame == true) {
_parent.forces();
_parent.physics5();
}
if (_parent.dead == undefined) {
if (_parent._parent.startgame == true) {
_parent.game();
}
} else {
_parent.death();
}
if (_parent._parent.startgame == true) {
_parent.makeenemy();
_parent.moveenemy();
}
if (_parent.dead == undefined) {
_parent.attackbees();
_parent.beesattack();
_parent.damagewasp();
}
}
Symbol 107 MovieClip Frame 1
stop();
stop();
Symbol 107 MovieClip Frame 17
gotoAndStop (1);
Symbol 120 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 123 Button
on (release) {
getURL ("http://www.timdrew.com.au/", "_blank");
}
Symbol 133 Button
on (release) {
gotoAndPlay (26);
_parent.startgame = true;
}
Symbol 137 Button
on (release) {
_parent.fader.play();
}
Symbol 142 MovieClip Frame 25
stop();
Symbol 142 MovieClip Frame 48
stop();
Symbol 142 MovieClip Frame 73
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 17
_parent.nextFrame();