Frame 1
function gotoMySite() {
getURL ("http://www.startmyhomework.com", "_blank");
}
onEnterFrame = function () {
var _local2 = new ContextMenu();
_local2.hideBuiltInItems();
var _local3 = new ContextMenuItem("Start My Homework", gotoMySite);
_local2.customItems.push(_local3, copyrightNotice);
_root.menu = _local2;
};
Frame 6
function gotoMySite() {
getURL ("http://www.startmyhomework.com", "_blank");
}
onEnterFrame = function () {
var _local2 = new ContextMenu();
_local2.hideBuiltInItems();
var _local3 = new ContextMenuItem("Start My Homework", gotoMySite);
_local2.customItems.push(_local3, copyrightNotice);
_root.menu = _local2;
};
sneeze = new Sound();
sneeze.attachSound("sneeze");
cough = new Sound();
cough.attachSound("cough");
pig = new Sound();
pig.attachSound("pig");
song = new Sound();
song.attachSound("song");
sound = true;
stop();
Instance of Symbol 47 MovieClip in Frame 6
on (release) {
_root.gotoAndStop("game");
}
Instance of Symbol 47 MovieClip in Frame 6
on (release) {
getURL ("http://www.startmyhomework.com", "_blank");
}
Frame 7
sp = 0;
ysp = 0;
WIDTH = 630;
HEIGHT = 450;
xbound = 275;
ybound = xbound * (HEIGHT / WIDTH);
health = 100;
score = 0;
p = false;
pa = false;
dcount = 10;
stop();
dead = false;
onEnterFrame = function () {
if (!p) {
score++;
if (sp > 0) {
if (guy._x > (WIDTH - xbound)) {
_root.world._x = _root.world._x - sp;
} else {
guy._x = guy._x + sp;
}
}
if (sp < 0) {
if (guy._x < xbound) {
_root.world._x = _root.world._x + (xbound - guy._x);
guy._x = xbound + sp;
} else {
guy._x = guy._x + sp;
}
}
if (ysp > 0) {
if (guy._y > (HEIGHT - ybound)) {
_root.world._y = _root.world._y - ysp;
} else {
guy._y = guy._y + ysp;
}
}
if (ysp < 0) {
if (guy._y < ybound) {
_root.world._y = _root.world._y - ysp;
} else {
guy._y = guy._y + ysp;
}
}
if (Key.isDown(39)) {
guy.gotoAndStop("right");
if (!_root.world.features.hitTest(guy._x + (guy._width / 2), guy._y, true)) {
sp = 8;
}
}
if (Key.isDown(37)) {
guy.gotoAndStop("left");
if (!_root.world.features.hitTest(guy._x - (guy._width / 2), guy._y, true)) {
sp = -8;
}
}
if (Key.isDown(38)) {
guy.gotoAndStop("up");
if (!_root.world.features.hitTest(guy._x, guy._y - (guy._height / 2), true)) {
ysp = -8;
}
}
if (Key.isDown(40)) {
guy.gotoAndStop("down");
if (!_root.world.features.hitTest(guy._x, guy._y + (guy._height / 2), true)) {
ysp = 8;
}
}
if (Key.isDown(37) && (Key.isDown(38))) {
guy.gotoAndStop("ul");
}
if (Key.isDown(37) && (Key.isDown(40))) {
guy.gotoAndStop("dl");
}
if (Key.isDown(39) && (Key.isDown(38))) {
guy.gotoAndStop("ur");
}
if (Key.isDown(39) && (Key.isDown(40))) {
guy.gotoAndStop("dr");
}
while (_root.world.features.hitTest(guy._x, guy._y + (guy._height / 2), true)) {
guy._y--;
ysp = 0;
}
while (_root.world.features.hitTest(guy._x, guy._y - (guy._height / 2), true)) {
guy._y++;
ysp = 0;
}
while (_root.world.features.hitTest(guy._x - (guy._width / 2), guy._y, true)) {
guy._x++;
sp = 0;
}
while (_root.world.features.hitTest(guy._x + (guy._width / 2), guy._y, true)) {
guy._x--;
sp = 0;
}
if (dcount <= 0) {
dcount = 10;
if (sound) {
sneeze.start(0, 0);
}
}
if (health == 0) {
dead = true;
}
if (dead) {
_root.gotoAndStop("gameover");
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
sp = 0;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
ysp = 0;
}
if (Key.isDown(80)) {
p = true;
pa = true;
}
} else {
pm.gotoAndStop("p");
}
};
Frame 8
finalscore = "Final Score: " + score;
if (_root.sound) {
_root.cough.start(0, 0);
}
Instance of Symbol 47 MovieClip in Frame 8
on (release) {
_root.gotoAndStop("menu");
_root.score = 0;
_root.health = 100;
_root.dead = false;
}
Instance of Symbol 47 MovieClip in Frame 8
on (release) {
getURL ("http://www.startmyhomework.com", "_blank");
}
Symbol 12 MovieClip [you] Frame 1
stop();
Symbol 21 Button
on (release) {
getURL ("http://www.startmyhomework.com", "_blank");
}
Symbol 24 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 25 MovieClip Frame 1
stop();
_root.stop();
Instance of Symbol 16 MovieClip "bar" in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_xscale = percent;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_parent.nextFrame();
}
}
Symbol 51 Button
on (release) {
nextFrame();
}
Symbol 54 Button
on (release) {
prevFrame();
}
Symbol 56 MovieClip Frame 1
stop();
_root.setVolume(50);
_root.song.start(0, 9999);
_root.sound = true;
Symbol 56 MovieClip Frame 2
_root.setVolume(0);
stopAllSounds();
_root.sound = false;
Symbol 65 MovieClip Frame 1
sp = Math.random() * 7;
ysp = Math.random() * 7;
num = Math.ceil(Math.random() * 2);
num1 = Math.ceil(Math.random() * 2);
if (num > 1) {
sp = sp;
} else {
sp = -1 * sp;
}
if (num1 > 1) {
ysp = ysp;
} else {
ysp = -1 * ysp;
}
onEnterFrame = function () {
if (!_root.p) {
_x = (_x + sp);
_y = (_y + ysp);
if (_x < (30 + (_width / 2))) {
sp = -sp;
} else {
_x = (_x + 2);
}
if (_x > (1220 - (_width / 2))) {
sp = -sp;
} else {
_x = (_x - 2);
}
if (_y < (30 + (_height / 2))) {
ysp = -ysp;
} else {
_y = (_y + 2);
}
if (_y > (620 - (_height / 2))) {
ysp = -ysp;
} else {
_y = (_y - 2);
}
while (_x < (30 + (_width / 2))) {
_x = (_x+1);
}
while (_x > (1220 - (_width / 2))) {
_x = (_x-1);
}
while (_y < (30 + (_height / 2))) {
_y = (_y+1);
}
while (_y > (620 - (_height / 2))) {
_y = (_y-1);
}
if (this.hitTest(_root.guy)) {
_root.health--;
_root.dcount--;
}
if (_root.dead) {
this.unloadMovie();
}
}
};
Symbol 66 MovieClip Frame 1
sp = Math.random() * 10;
ysp = Math.random() * 10;
num = Math.ceil(Math.random() * 2);
num1 = Math.ceil(Math.random() * 2);
if (num > 1) {
sp = sp;
} else {
sp = -1 * sp;
}
if (num1 > 1) {
ysp = ysp;
} else {
ysp = -1 * ysp;
}
onEnterFrame = function () {
if (!_root.p) {
_x = (_x + sp);
_y = (_y + ysp);
if (_x < (30 + (_width / 2))) {
sp = -sp;
} else {
_x = (_x + 2);
}
if (_x > (1220 - (_width / 2))) {
sp = -sp;
} else {
_x = (_x - 2);
}
if (_y < (30 + (_height / 2))) {
ysp = -ysp;
} else {
_y = (_y + 2);
}
if (_y > (620 - (_height / 2))) {
ysp = -ysp;
} else {
_y = (_y - 2);
}
while (_x < (30 + (_width / 2))) {
_x = (_x+1);
}
while (_x > (1220 - (_width / 2))) {
_x = (_x-1);
}
while (_y < (30 + (_height / 2))) {
_y = (_y+1);
}
while (_y > (620 - (_height / 2))) {
_y = (_y-1);
}
if (_root.count > 5) {
sp = sp * 1.0125;
ysp = ysp * 1.0125;
}
if (this.hitTest(_root.guy)) {
_root.score = _root.score + 100;
_x = ((Math.random() * 750) + 45);
_y = ((Math.random() * 550) + 45);
sp = Math.random() * 10;
ysp = Math.random() * 10;
num = Math.ceil(Math.random() * 2);
num1 = Math.ceil(Math.random() * 2);
if (num > 1) {
sp = sp;
} else {
sp = -1 * sp;
}
if (num1 > 1) {
ysp = ysp;
} else {
ysp = -1 * ysp;
}
if (_root.sound) {
_root.pig.start(0, 0);
}
}
if (_root.dead) {
this.unloadMovie();
}
}
};
Symbol 75 MovieClip Frame 1
onEnterFrame = function () {
hpb._xscale = _root.health;
healthdisp = "Health: " + _root.health;
scoredisp = "Score: " + _root.score;
};
Instance of Symbol 47 MovieClip in Symbol 75 MovieClip Frame 1
on (release) {
_root.dead = true;
}
Symbol 79 MovieClip Frame 1
stop();
Instance of Symbol 47 MovieClip in Symbol 79 MovieClip Frame 2
on (release) {
_root.p = false;
_root.pm.prevFrame();
}
Instance of Symbol 47 MovieClip in Symbol 79 MovieClip Frame 2
on (release) {
getURL ("http://www.startmyhomework.com", "_blank");
}