Frame 1
Stage.showMenu = false;
Frame 3
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
percentLoaded = Math.floor((lBytes / tBytes) * 100);
loader.bar._xscale = percentLoaded;
loader.percent.text = ((percentLoaded + "% of ") + Math.floor(tBytes / 1024)) + "K loaded.";
if (lBytes >= tBytes) {
if (count >= 12) {
gotoAndStop (4);
gotoAndPlay;
} else {
count++;
}
} else {
gotoAndPlay (1);
}
Frame 4
scroller.scroll = scroller.scroll + 1;
stop();
Instance of Symbol 26 MovieClip "admov" in Frame 4
onClipEvent (enterFrame) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
stopAllSounds();
getURL ("http://www.titletownnet.com", "_blank");
};
}
Frame 7
_root.iCounter = 0;
myMusic = new Sound(this);
myMusic.setVolume(50);
myMusic.attachSound("mySound");
myMusic.start(0, 999);
_root.randIntOne = 3;
_root.randIntTwo = 2;
_root.speed = 0;
_root.iMaxBullets = 3;
_root.iCounter = 1;
numEnemy = 3;
_root.level = 1;
score = 0;
lives = 5;
playSound = 0;
i = 2;
while (i <= numEnemy) {
enemy1.duplicateMovieClip("enemy" + i, i);
i++;
}
stopAllSounds();
myMusic = new Sound(this);
myMusic.attachSound("mySound");
myMusic.start(0, 99);
Instance of Symbol 56 MovieClip "enemy1" in Frame 7
onClipEvent (load) {
function reset() {
this._x = random(376) + 5;
this._y = 30;
enemySpeed = random(_root.randIntOne) + _root.randIntTwo;
this.gotoAndStop(1);
}
function Hit() {
_root.hit_mc.gotoAndPlay(2);
_root.lives--;
playBoom = new Sound(this);
playBoom.attachSound("explosion");
playBoom.start(0, 1);
_root["enemy" + i].gotoAndPlay(2);
this.reset();
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 300) {
reset();
}
}
onClipEvent (enterFrame) {
if (_root.lives > 0) {
_root.enemy1;
if (hitTest(_root.gun)) {
Hit();
}
} else {
_root.score1 = "Your score: " + _root.score;
_root.gotoAndStop("gameOver");
}
}
Instance of Symbol 61 MovieClip "bullet" in Frame 7
onClipEvent (load) {
if (_root.fire == 1) {
this._x = _root.gun._x;
this._y = _root.gun._y;
}
}
onClipEvent (enterFrame) {
if (_root.fire == 1) {
this._y = this._y - 5;
this._visible = 1;
}
if (this._y < 0) {
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["enemy" + i])) {
_root["bullet" + i].gotoAndPlay(2);
_root.score = _root.score + 100;
if (_root.score == 4500) {
_root.lives++;
myLife = new Sound(this);
myLife.attachSound("scream");
myLife.start(0, 1);
}
_root.speed = _root.speed + 1;
_root["enemy" + i].gotoAndPlay(2);
if (_root.speed > 10) {
_root.randIntOne++;
_root.randIntTwo++;
_root.level++;
_root.levelmov.gotoAndPlay(2);
_root.levelmov.movtwo.leveltext.text = "Level " + _root.level;
myLevel = new Sound(this);
myLevel.attachSound("uplevel");
myLevel.start(0, 1);
_root.speed = 0;
}
this.removeMovieClip();
}
i++;
}
}
Instance of Symbol 66 MovieClip in Frame 7
onClipEvent (load) {
this._visible = 0;
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.gun._x = _root._xmouse;
_root.gun._y = _root._ymouse;
_root.hit_mc._x = _root._xmouse;
_root.hit_mc._y = _root._ymouse;
}
Frame 8
stop();
Frame 9
_root.playGame = "Play Again?";
if (_root.score < 4500) {
_root.message.text = "Is That All You Got?!";
} else {
_root.message.text = "Master Spider Squasher!!!";
}
Mouse.show();
_root.gun.removeMovieClip();
_root.hit_mc.removeMovieClip();
stop();
stopAllSounds();
myMusic = new Sound(this);
myMusic.setVolume(50);
myMusic.attachSound("spooky");
myMusic.start(0, 999);
myScream = new Sound(this);
myScream.attachSound("scream");
myScream.start(0, 1);
Instance of Symbol 26 MovieClip "admov" in Frame 9
onClipEvent (enterFrame) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
stopAllSounds();
getURL ("http://www.titletownnet.com", "_blank");
};
}
Symbol 23 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "ihatespiders";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 37 Button
on (press) {
gotoAndPlay (7);
}
Symbol 47 MovieClip Frame 20
stop();
Symbol 52 Button
on (press) {
gotoAndPlay (7);
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
myNoise = new Sound(this);
myNoise.setVolume(100);
myNoise.attachSound("splat");
myNoise.start(0, 1);
Symbol 56 MovieClip Frame 3
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 63 Button
on (release) {
_root.fire = 1;
_root.iCounter = _root.iCounter + 1;
_root.iCounter++;
if (_root.iCounter >= 3) {
_root["bullet" + i].gotoAndStop(2);
_root.iCounter = 0;
} else {
removeMovieClip("bullet" + i);
}
duplicateMovieClip (_root.bullet, "bullet" + i, i);
_root["bullet" + i].gotoAndStop(1);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 50
gotoAndStop (1);
Symbol 86 MovieClip Frame 17
gotoAndStop (1);
Symbol 91 Button
on (press) {
gotoAndPlay (7);
_root.fire = 0;
}
Symbol 92 Button
on (release) {
_root.fire = 1;
_root.iCounter = _root.iCounter + 1;
_root.iCounter++;
if (_root.iCounter >= 3) {
_root["bullet" + i].gotoAndStop(2);
_root.iCounter = 0;
} else {
removeMovieClip("bullet" + i);
}
duplicateMovieClip (_root.bullet, "bullet" + i, i);
_root["bullet" + i].gotoAndStop(1);
}
Symbol 93 MovieClip Frame 18
stop();
Symbol 98 Button
on (release) {
_root.gameover = 1;
}
Symbol 105 MovieClip Frame 15
stop();
Symbol 109 Button
on (press) {
gotoAndPlay (7);
_root.fire = 0;
}
Symbol 110 Button
on (release) {
_root.gameover = 1;
}